Home › Forums › WinForms controls › Xceed Grid for WinForms › Get the value of a Cell ? › Reply To: Get the value of a Cell ?
FAS:
Are you using unbound or bound data?
If you use unbound data, then you could do like this:
foreach (Xceed.Grid.DataRow row in this.grid1.gridControl1.DataRows)
{
foreach (Xceed.Grid.Cell cell in row.Cells)
{
if (cell.FieldName == “Clientid”)
{
string id = (string)cell.Value;
break;
}
}
}
Imported from legacy forums. Posted by C# (had 332 views)