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
555
XamGrid Multiselect Programmatically
posted

What is your suggestion for selecting multiple rows in the XamGrid on CodeBehind?

Greetings

Parents
No Data
Reply
  • 35319
    Verified Answer
    posted

    Hi,

     

    Thank you for your post. I have been looking into your requirement and the easiest way to select rows in code-behind is adding the desired rows in the SelectedRows collection of the XamGrid:

     

                this.xamGrid1.SelectionSettings.SelectedRows.Add(this.xamGrid1.Rows[1]);

                this.xamGrid1.SelectionSettings.SelectedRows.Add(this.xamGrid1.Rows[2]);

                this.xamGrid1.SelectionSettings.SelectedRows.Add(this.xamGrid1.Rows[4]);

     

    For more information you could look into the following link from our online documentation:

     

    http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=xamGrid_Setting_Selection_Programmatically.html

     

    Let me know, if you need any further assistance on this matter.

Children
No Data