for loop on the selectedrowscount in devexpress gridview in vb.net code example
Example: loop gridcontrol devexpress c#
for (int i = 0; i < gridView1.DataRowCount; i++)
{
if (gridView1.GetRowCellValue(i, "FieldName") == value)
//do something
}