loop gridcontrol devexpress c#

C#
for (int i = 0; i < gridView1.DataRowCount; i++)  
{  
     if (gridView1.GetRowCellValue(i, "FieldName") == value)  
         //do something  
}  
Source

Also in C#: