Back to Devexpress

BeforeItemDropEventArgs.NewGroupColumnValue Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-tile-dot-beforeitemdropeventargs-428cc83d.md

latest3.0 KB
Original Source

BeforeItemDropEventArgs.NewGroupColumnValue Property

Gets the value of the new group to which the tile is about to be dropped.

Namespace : DevExpress.XtraGrid.Views.Tile

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public object NewGroupColumnValue { get; set; }
vb
Public Property NewGroupColumnValue As Object

Property Value

TypeDescription
Object

The value of the tile’s new group.

|

Remarks

A group in the Tile View combines tiles with identical group values (the TileView.ColumnSet.GroupColumn‘s values). Thus, each group is identified by its unique group value. Use the NewGroupColumnValue property to return this value.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NewGroupColumnValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-reorder-tileview-cards-sql/CS/Reorder/Form1.cs#L45

csharp
// Assign the new "colGroupId" column value to the dragged card
    view.SetRowCellValue(e.RowHandle, view.ColumnSet.GroupColumn, e.NewGroupColumnValue);
}

winforms-grid-reorder-tileview-cards-sql/VB/Reorder/Form1.vb#L42

vb
' Assign the new "colGroupId" column value to the dragged card
    view.SetRowCellValue(e.RowHandle, view.ColumnSet.GroupColumn, e.NewGroupColumnValue)
End Sub

See Also

GroupColumn

BeforeItemDropEventArgs Class

BeforeItemDropEventArgs Members

DevExpress.XtraGrid.Views.Tile Namespace