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
350
How to make the selectedrow equals activerow
posted

Hi,

There´s a way to set the selected row (or rows) same active rows with a UltraWinGrid control?

I´m not interesting to make a groups of rows seleted at the same time to the active row.

 

Thanks....

Parents
No Data
Reply
  • 69832
    Offline posted

    You can prevent concurrent selection of more than one row by setting the UltraGrid.DisplayLayout.Override.SelectTypeRow property to 'Single'.

    To ensure that the ActiveRow is synchronized with the selected row, you can handle the AfterSelectChange event for the case where the Type property of the event arguments is typeof(UltraGridRow), and set the ActiveRow to the row returned from UltraGrid.Selected.Rows[0]. Since a row can be deselected in code, you should check the count returned from UltraGrid.Selected.Rows before proceeding, and if the count is zero set ActiveRow = null.

Children
No Data