ggc Record into a DataRow (?)

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.

1 Reply

AD Administrator Syncfusion Team 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;

Loader.
Up arrow icon