Hello
Suppose that one has a band with 3 columns where one of them is the "Primary Key". How can I check if a certain key exists within the data? How can I retrieve a row given the key?
Thanks a lot
You need to loop through the rows.
var column = grid.DisplayLayout.Bands[0].Columns[columnName];
foreach (UltraGridRow row in grid.Rows)
if (row.GetCellValue(column) == myValue)
....
If your DataSource is a DataTable, then it is probably more efficient to search the data source than the search the grid. DataTable has methods for finding rows built-in.