Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
UltraWinGrid selected row and active row
posted

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,

Parents
  • 50
    posted

    I had a similar problem, I only wanted the user to see the selected row hilighted (i.e., very easy to end up with 1 row selected and a different row active).

    Originally I just set ActiveRow to null in _AfterSelectChange.  Later I found this caused a NullReferenceException when I tried to group rows by a column (took me awhile to figure out the culprit).

    My Solution:  Now I'm setting .ActiveRow = .Selected.Rows[0]. in _AfterSelectChange.  I didn't want to convert everything to use the ActiveRow, because I foresee "them" requesting the ability to perform actions on multiple rows in the future.

Reply Children