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

ggc Record into a DataRow (?)

Thread ID:

Created:

Updated:

Platform:

Replies:

56806 Feb 21,2007 10:09 AM UTC Feb 21,2007 06:52 PM UTC WinForms 1
loading
Tags: GridControl
Ryan Hardoon
Asked On February 21, 2007 10:09 AM UTC

Hi everybody,

Is there a neat way of generating a DataRow out of a Syncfusion.Grouping.Record, without resorting to parsing the Syncfusion.Grouping.Element.info (or ParentElement.info) into fieldName-fieldValue pairs or inserting field names into the code ?


Thanks in advance.

Administrator [Syncfusion]
Replied On February 21, 2007 06:52 PM UTC

If you are working with DataTables as the grid's DataSource, then you can try this code to map a Record to its underlying DataRow object.


//given some known Record r
CurrencyManager cm = this.gridGroupingControl1.Table.GetCurrencyManager();

int loc = gridGroupingControl1.Table.FilteredRecords.IndexOf(r);
DataRowView drv = cm.List[loc];
DataRow dr = drv.Row;

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

;