VGridControlBase.GetFirst() Method
In This Article
Returns the first row within the VGridControlBase.Rows collection.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
#Declaration
#Returns
Type | Description |
---|---|
Base |
A Base |
#Remarks
To get the first visible row use the VGridControlBase.GetFirstVisible method.
#Example
The following sample code demonstrates how to traverse downwards through all rows within the VGridControl control. The VGridControlBase.GetFirst
and VGridControlBase.GetNext methods are used for this purpose.
// obtaining the first row within the control
BaseRow row = vGridControl1.GetFirst();
while (row != null){
// ...
// perform the desired actions with the processed row
// ...
row = vGridControl1.GetNext(row);
}
See Also