Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you convert DataRow[] to DataSet?
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Can you convert DataRow[] to DataSet?
Miscellaneous
Thread ID:
00721148
Message ID:
00721148
Views:
65
All,

I stumbled across a way to filter records in a DataSet via
DataRow[] MyRow = MyDataSet.Tables[0].Select("accepted=1");
What I am doing is presenting the user with all of the requests they have made. If they press 'Accepted', I want to filter out the accepted records from the dataset and present them in a grid

I would like to use this new cursor as a DataSource for a grid. However, when I try to assign it, it says it cannot find the PK, so I am guessing it does not support the IEnumerator interface.
"DataBinder.Eval: 'System.Data.DataRow' does not contain a property with the name pk_crfp."
Can I convert DataRow[] to a DataSet? Or what would be the recommended way to go work this?

TIA,
Doug
Douglas Osborne
Don't spend your life just wishing - http://www.AllGiftRegistry.com
Next
Reply
Map
View

Click here to load this message in the networking platform