windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-72154a48.md
Contains the value representing the invalid row handle. This value is returned when an attempt to obtain a particular row fails, etc. Please refer to the Rows topic for more information regarding row handles.
Namespace : DevExpress.XtraGrid
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public const int InvalidRowHandle = -2147483648
Public Const InvalidRowHandle As Integer = -2147483648
| Type |
|---|
| Int32 |
The following code snippets (auto-collected from DevExpress Examples) contain references to the InvalidRowHandle field.
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-preserve-grid-state-on-refresh/CS/RefreshHelperClass.cs#L61
int dataRowHandle = view.LocateByValue(0, view.Columns[keyFieldName], rowInfo.Id);
if(dataRowHandle != GridControl.InvalidRowHandle){
int parentRowHandle = FindParentRowHandle(rowInfo, dataRowHandle);
winforms-grid-find-row-by-display-text/CS/WindowsApplication1/GridViewSearch.cs#L48
{
if (SearchColumn == null) return GridControl.InvalidRowHandle;
startRowHandle = Math.Max(0, startRowHandle);
winforms-grid-prevent-focusing-group-row/CS/Form1.cs#L33
{
if (e.PrevFocusedRowHandle == GridControl.InvalidRowHandle)
focusedRowHandle = 0;
winforms-grid-select-detail-rows-when-selecting-master-row/CS/MasterDetailSelectionHelper.cs#L35
}
if (_GridView.IsMasterRow(e.ControllerRow) || e.ControllerRow == GridControl.InvalidRowHandle)
{
winforms-grid-reorder-tileview-cards-sql/CS/Reorder/Form1.cs#L32
that are already in the target group */
if(e.NewGroupRowHandle != GridControl.InvalidRowHandle) {
int childRowCount = view.GetChildRowCount(e.NewGroupRowHandle);
winforms-preserve-grid-state-on-refresh/VB/RefreshHelperClass.vb#L67
Dim dataRowHandle As Integer = view.LocateByValue(0, view.Columns(keyFieldName), rowInfo.Id)
If dataRowHandle <> GridControl.InvalidRowHandle Then
Dim parentRowHandle As Integer = FindParentRowHandle(rowInfo, dataRowHandle)
winforms-grid-find-row-by-display-text/VB/WindowsApplication1/GridViewSearch.vb#L52
Private Function FindRow(ByVal startRowHandle As Integer, ByVal isForward As Boolean) As Integer
If SearchColumn Is Nothing Then Return GridControl.InvalidRowHandle
startRowHandle = Math.Max(0, startRowHandle)
winforms-grid-prevent-focusing-group-row/VB/Form1.vb#L31
If e.FocusedRowHandle < 0 Then
If e.PrevFocusedRowHandle = GridControl.InvalidRowHandle Then
focusedRowHandle = 0
winforms-grid-select-detail-rows-when-selecting-master-row/VB/MasterDetailSelectionHelper.vb#L30
End If
If _GridView.IsMasterRow(e.ControllerRow) OrElse e.ControllerRow = GridControl.InvalidRowHandle Then
UpdateSelection(e.ControllerRow)
winforms-grid-reorder-tileview-cards-sql/VB/Reorder/Form1.vb#L29
' that are already in the target group
If e.NewGroupRowHandle <> GridControl.InvalidRowHandle Then
Dim childRowCount As Integer = view.GetChildRowCount(e.NewGroupRowHandle)
See Also