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 bulk update sorted rows?

Thread ID:





45668 Jun 26,2006 05:38 PM Jun 27,2006 04:37 PM Windows Forms 2
Tags: Grouping
Martin Nitschke
Asked On June 26, 2006 05:38 PM

I would like to be able select some records from my grid, then do a bulk update (increment each value by 1) on a sequence number that is contained in the grid. When I use this code: foreach (SelectedRecord selRecord in this.grid.Table.SelectedRecords) it returns the Records in order of the collection. How can I get the records in the displayed order and loop through them?

Administrator [Syncfusion]
Replied On June 26, 2006 06:23 PM

Hi Martin, To get the records in the displayed order of the the grid, You need to use the DisplayElementInTableCollection . Here is a code snippet. foreach(Element el in this.gridGroupingControl1.Table.DisplayElements) { if( el.Kind == DisplayElementKind.Record) { Record rec = el.ParentRecord; Console.WriteLine(el.ParentRecord.Info ); } } Let me know if this helps. Best Regards, Haneef

Martin Nitschke
Replied On June 27, 2006 04:37 PM

yes, works great. I tried it yesterday but didn''t do the "kind" check. Thanks!


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.