Is there a way to set up the ultrawingrid (on a windows form, vb.net 2.0, windows xp) so that the active row and selected row are always the same? It is confusing to my users when a row is highlighted and then they click on another row and that becomes the active row, but it is not selected.
Thanks,
If you only need to deal with one row at a time, anyway, then you might just want to turn off selection by setting SelectTypeRow to None. Then you only have to deal with the ActiveRow.
Disable Selected Row Display: Example: GridName.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.None
Hi Mike,
I tried this solution but it does not work (9.2.20092.2058).
SelectTypeRow = Single;
SelectTypeCell = Single;
CellClickAction = EditAndSelectText;
In the AfterRowActivate-event I clear selected rows und add the active row to the selected rows and I have one selected row at this time and because of my configuration the clicked cell in the row is in edit mode. So far so good.
Now, if I click on any other control in my form, the grid looses focus (edit mode ends, row remains visually selected). But now, the Selected.Rows.Count is 0 !!!
What happens here? Do you how I loose the selected row?
Thanks. Markus
Thanks for the help Mike.
I searched for SelectTypeRow and ended up discovering the CellClickAction property in the DisplayLayout | Override group.
I set CellClickAction = RowSelect
and that gave me the behavior I wanted.
Now, when a user clicks on a cell, the row becomes the highlighted row and the active row.