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.
Syncfusion Feedback

GGC 7.403.0.20 - exception with multiple deletes

Thread ID:

Created:

Updated:

Platform:

Replies:

93843 Apr 7,2010 04:29 PM UTC Apr 14,2010 03:34 AM UTC Windows Forms 4
loading
Tags: Grouping
Bina Thakkar
Asked On April 7, 2010 04:29 PM UTC

Hi:

I get an exception (Index ou of range) when I try to delete multiple selected rows.

Here is the code:

// On some button click
// GGC allows multiple selection
private void _btnDelete_Click(object sender, EventArgs e)
{
IList list = new List();
if (this.gridGroupingControl.Table.SelectedRecords.Count > 0)
{
//Selection is made in the parent table
foreach (SelectedRecord selectedRecord in gridGroupingControl.Table.SelectedRecords)
{
record.Record.Delete();
}
gridGroupingControl.Reinitialize();
}

Thank you,
Bina

Christopher Issac Sunder K [Syncfusion]
Replied On April 8, 2010 12:05 PM UTC

Hi Bina,

Thank you for using Syncfusion products.

Deleting the SelectedRecords in GGC parent table is working fine in our side.

Please refer the sample in the below link which illustrates the above.

http://help.syncfusion.com/support/samples/Grid.Windows/7.4.0.20/F93843.zip

Please let me know if you have any further concerns.

Regards,
Christopher K.

Bina Thakkar
Replied On April 8, 2010 02:23 PM UTC

I have attached zip file with code. Datasource is Collection and not datatable. I get an exception when I select say 4 rows and hit Delete button.

Thank you,
Bina



F93843_94ae138c.zip

Bina Thakkar
Replied On April 13, 2010 06:36 PM UTC

I found the root cause.

Thank you,
Bina

Rajadurai C [Syncfusion]
Replied On April 14, 2010 03:34 AM UTC

Hi Bina,

Thanks for your update.

Glad to hear that your requirement has been achieved.

Regards,
Rajadurai

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.

Warning Icon 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.Close Icon

;