Hi,
How can i get selected row when the row selecot is clicked ???
and how to disable the multiple row selecting option, i want only one row to be selected at a time.
thanks
Hello,
What you could do to get the selected row is to get it from the selected rows collection from the UltraGrid like: ultraGrid1.Selected.Rows[index]
If you would like to select only a single row you should set the following in the InitializeLayout event of the UltraGrid:
e.Layout.Override.SelectTypeRow = SelectType.Single;
Ok Thanks!!!
Ok now i have setted "e.Layout.Override.SelectTypeRow = SelectType.Single" and to have the selected row, as the selectionType is Single so should i use 0 as index of selectedRows collection???
ultraGrid1.Selected.Rows[0];
Yes,
You should access it like that.
Please let me know if you have any other questions.