Skip to main content
A newer version of this page is available. .

GridControl.IsGroupRowHandle(Int32) Method

Indicates whether the specified handle corresponds to a group row.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public bool IsGroupRowHandle(
    int rowHandle
)

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.

Example

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

View Example

<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>

The following code snippets (auto-collected from DevExpress Examples) contain references to the IsGroupRowHandle(Int32) method.

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.

See Also