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

How to select multiple rows in grid grouping control

Hi,
I am using grid grouping control,
I want to select multiple rows in grid.
And also count of selected rows.
For selection of rows I am using
                   this.gridgroupingControl.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
                    this.gridgroupingControl.TableOptions.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Multiple;
But it not working.
I am using gridgroupingControl.TableModel.Selections.Count ,but it gives 0
Is any solution regarding this?

Regards,
Paurnima.

1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team November 12, 2014 07:03 PM UTC

Hi Paurnima,

 

Thank you for your interest in Syncfusion products.

 

If you want to select the multiple rows in a gridgroupingcontrol, you can use the “ListBoxSelectionMode” property and select the selectionmode as “MultiExtended”. And if you want to count the selected records in grid, you can use the “SelectedRecords” property. Please refer the below code,

 

Code:

 

this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;

 

private void buttonAdv1_Click(object sender, EventArgs e)

  {

            int i1 = this.gridGroupingControl1.Table.SelectedRecords.Count;

            MessageBox.Show(i1.ToString());

  }

 

Please let us know if you have any concern.

 

Regards,

Muthukumar K


Attachment: MultirecordSelection_count_6b61437c.zip

Loader.
Live Chat Icon For mobile
Up arrow icon