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. Image for the cookie policy date

Can I cast a a RecordsInTableCollection/SelectedRecords to a array of DataRow.

Can I cast a a RecordsInTableCollection/SelectedRecords to a array of DataRow?

1 Reply

HA haneefm Syncfusion Team July 3, 2007 08:30 PM UTC

Hi James,

Can I cast a a RecordsInTableCollection/SelectedRecords to a array of DataRow?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Yes, You can try using these code:

foreach (SelectedRecord rec in _Grid.Table.SelectedRecords)
{
DataRowView rowView = rec.Record.GetData() as DataRowView;
DataRow row = rowView.Row as DataRow;
Console.WriteLine(row[0]);
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon