Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you convert DataRow[] to DataSet?
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Can you convert DataRow[] to DataSet?
Divers
Thread ID:
00721148
Message ID:
00721148
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform