GGC 7.403.0.20 - exception with multiple deletes

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

4 Replies

CI Christopher Issac Sunder K Syncfusion Team 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.


BT Bina Thakkar 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


BT Bina Thakkar April 13, 2010 06:36 PM UTC

I found the root cause.

Thank you,
Bina


RC Rajadurai C Syncfusion Team April 14, 2010 03:34 AM UTC

Hi Bina,

Thanks for your update.

Glad to hear that your requirement has been achieved.

Regards,
Rajadurai

Loader.
Up arrow icon