I have set property of Grid CellClickAction = RowSelect;
I am able to unselect multiple row by writing small code on Mouseclick event
foreach (UltraGridRow row in ugAgtState.Selected.Rows){row.Selected = false; } //after I will select single row where mouse is located
foreach (UltraGridRow row in ugAgtState.Selected.Rows)
}
//after I will select single row where mouse is located
Is there any property saying MultiSelect = false? if yes, Please let me know where it is in Grid Properties as I am unable to found it.
No need to write custom code. Set the MaxSelctedRows property value to 1.
This property is under DisplayLayout --> Override --> MaxSelectedRows
Actually, if you only want to deal with one "selected" row, you are probably better off setting:
grid.DisplayLayout.Override.SelectTypeRow = None
Then you just work with the grid.ActiveRow instead of the selected row. If you want to highlight the active row, use the ActiveRowAppearance (also on the Override object).