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
690
How to set my active row as selected row
posted

hi all,

 my grid have only single band and i set the property selectTypRow = single..

so please suggest for How to set my active row as selected row (with highlited).

UltraGrid1:SELECTED:Rows:Clear().
UltraGrid1:ActiveRow = hRow.  /* here hRow is a previos save active row.*/

 

Thanks in advance...

Parents
No Data
Reply
  • 469350
    Offline posted

    You can handle the AfterRowActivate event and set the row's Selected property to true.

    But why do that? Why deal with both active and selected and go to the trouble of keeping them constantly in synch. If you only need to deal with a single row, why not simply always use the ActiveRow and use the ActiveRowAppearance to highlight it and turn off selection? 

Children