Hi,
I need the row index in AfterSelectChange.
regards,
pgr2007
Whenever you like you can write:
grid.ActiveRow.Index;
which is the active row. If you want the selected row or rows you can write:
grid.Selected.Rows
and you'll get a collection of selected rows. There maybe more than one selected row.
Thanks for the reply,
foreach (UltraGridRow ugr in this.UltraGrid1.Rows)
{
ugr.Cells["Select"].Value = true;
else
}
When I run this code in AfterSelectChange, getting null exception in ugr.Cells["Select"].Value
Regards,
The only thing I can see that could be null is Cells["Select"]
Try to debug and see if it is null.
this.UltraGrid1.DisplayLayout.Bands[0].SortedColumns.count>o
else no problem