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. (Last updated on: November 16, 2018).
Close Icon
Unfortunately, activation email could not send to your email. Please try again.
Close Icon
close icon
Vote for your favorite ebook
Succinctly Readers Awards 2020
Syncfusion Feedback

getting records from selected rows.

Thread ID:





36978 Nov 14,2005 01:46 PM UTC Nov 15,2005 09:51 AM UTC WinForms 6
Tags: GridControl
Asked On November 14, 2005 01:46 PM UTC

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 01:53 PM UTC

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 08:32 PM UTC

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 05:12 AM UTC

thanks for your reply sir....

Replied On November 15, 2005 05:13 AM UTC

thanks for your reply sir...

Replied On November 15, 2005 09:03 AM UTC

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 09:51 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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