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.
Unfortunately, activation email could not send to your email. Please try again.

How to select multiple rows in grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

117575 Nov 11,2014 04:55 AM Nov 12,2014 02:03 PM Windows Forms 1
loading
Tags: GridGroupingControl
Paurnima
Asked On November 11, 2014 04:55 AM

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.

Muthukumar Kalyanasundaram [Syncfusion]
Replied On November 12, 2014 02:03 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;