Articles in this section
Category / Section

How to persist the selected record collection in the GridGroupingControl ?

1 min read

 

Persisting the selected record collection can be achieved by Iterating through the collection of SelectedRecords. Please refer the below code snippet which illustrates this:

//Iterates through the collection of SelectedRecords in GridGroup control.

C#

foreach (SelectedRecord sel in this.GridGroupingControl1.Table.SelectedRecords)

{

Record r = sel.Record;

r.SetSelected(true);

r.SetCurrent();

}

'Iterates through the collection of SelectedRecords in GridGroup control.

VB

Dim sel As SelectedRecord

For Each sel In Me.GridGroupingControl1.Table.SelectedRecords

Dim r As Record = sel.Record

r.SetSelected(True)

r.SetCurrent()

Next sel

Sample:

http://help.syncfusion.com/support/samples/kb/Grid.Web/6.1.0.34/GGCselectedrec/SelectedRecord.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied