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.

getting records from selected rows.

Thread ID:





36978 Nov 14,2005 08:46 AM Nov 15,2005 04:51 AM Windows Forms 6
Tags: GridControl
Asked On November 14, 2005 08:46 AM

I am working with GridGroupingControGrid. I am looking for the solution to remove data from a grid. but in my case how to remove data from multiple rows.That is an user has selected multiple rows and trying to delete all that togather. so i need the solution that how can i get only those data which are in selected rows. Waiting For reply Thank You. Vihar.

Administrator [Syncfusion]
Replied On November 14, 2005 08:53 AM

You can use the grid.Table.SelectedRecords collection. Here is a froum thread with some snippets. http://www.syncfusion.com/Support/forums/message.aspx?MessageID=30313

Babak Keradman
Replied On November 14, 2005 03:32 PM

Moderator can delete my post above ^ try this to remove multiple rows: Syncfusion.Grouping.SelectedRecordsCollection selectedRecords; selectedRecords = yourGrid.Table.SelectedRecords; foreach(Syncfusion.Grouping.SelectedRecord record in selectedRecords) { yourDataSet.Tables[0].Rows[record.GetSourcePosition()].Delete(); }

Replied On November 15, 2005 12:12 AM

thanks for your reply sir....

Replied On November 15, 2005 12:13 AM

thanks for your reply sir...

Replied On November 15, 2005 04:03 AM

By this implements i am not getting selected data. in this i am getting selectedRecords.count property valu 0. so i cant go further. I have wrritem my code as..... Syncfusion.Grouping.SelectedRecordsCollection selRecords; selRecords = gridInstance.Table.SelectedRecords; foreach(yncfusion.Grouping.SelectedRecord record in selRecords) { selRecords.Remove(record.Record); }

Administrator [Syncfusion]
Replied On November 15, 2005 04:51 AM

Make sure you are setting: grid.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; grid.TableOptions.AllowSelections = GridSelectionFlags.None; And, if you are using nested tables, then you have to make sure you are accessing the proper Table.SelectedRecords collection.


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.