We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Multiple row selection programmatically

Hi, I would like to know how to programmatically select multiple rows in a syncfusion data grid. i.e I know the rows I want to highlight through some external source. I need the grid now to reflect the same. [The selection type is - multiple rows. Can have multiple ranges]. I tried setting using the datagrid.Model.SelectedItems.AddRanges(), .Add()... methods. They need GridRangeInfo objects. [Dint know how all the properties that need to be set on that object. Dint even know if this is the right approach. Hence ths post] Could you please help me resolve this issue? A test app will be helpful. Thanks a lot!

1 Reply

AD Administrator Syncfusion Team April 5, 2006 01:06 PM UTC

>Hi, > >I would like to know how to programmatically select multiple rows in a syncfusion data grid. i.e I know the rows I want to highlight through some external source. I need the grid now to reflect the same. >[The selection type is - multiple rows. Can have multiple ranges]. >I tried setting using the datagrid.Model.SelectedItems.AddRanges(), .Add()... methods. They need GridRangeInfo objects. [Dint know how all the properties that need to be set on that object. Dint even know if this is the right approach. Hence ths post] > >Could you please help me resolve this issue? A test app will be helpful. > >Thanks a lot!

Loader.
Live Chat Icon For mobile
Up arrow icon