GridControl.IsGroupRowHandle(Int32) Method

Indicates whether the specified handle corresponds to a group row.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public bool IsGroupRowHandle(
    int rowHandle
)
Public Function IsGroupRowHandle(
    rowHandle As Integer
) As Boolean

Parameters

Name Type Description
rowHandle Int32

An integer value that specifies the row's handle.

Returns

Type Description
Boolean

true if the specified handle corresponds to a group row; otherwise, false.

Remarks

Group row handles are negative (start from -1). The IsGroupRowHandle method returns false, if the specified handle corresponds to a data row or invalid row.

To learn more, see Grouping and Identifying Rows and Cards.

Examples

This example shows how to identify whether a group or data row has been double-clicked by end-user.

<Window x:Class="DXGrid_RowDoubleClick.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">

    <Grid>
        <dxg:GridControl Name="grid" Control.MouseDoubleClick="grid_MouseDoubleClick">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="ProductName">
                    <dxg:GridColumn.EditSettings>
                        <dxe:TextEditSettings HorizontalContentAlignment="Center" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
                <dxg:GridColumn FieldName="UnitPrice">
                    <dxg:GridColumn.EditSettings>
                        <dxe:SpinEditSettings HorizontalContentAlignment="Left" />
                    </dxg:GridColumn.EditSettings>
                </dxg:GridColumn>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView Name="tView" />
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Window>
See Also