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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bulk update sorted rows?

Thread ID:

Created:

Updated:

Platform:

Replies:

45668 Jun 26,2006 09:38 PM UTC Jun 27,2006 08:37 PM UTC WinForms 2
loading
Tags: Grouping
Martin Nitschke
Asked On June 26, 2006 09:38 PM UTC

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 10:23 PM UTC

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

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

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

;