Pocket PC Datset

E

Echo

Hi all. I was just wondering how to add a dataset to the smart device
app in C# programatically Any code is appreciated.
 
K

Khano

Hello Echo i don't know what you mean by that
but if you want to add a dataset to yur application
you have to declare a dataset variable and initialize it
like the following

************************************

DataSet ds = new DataSet("myDataSet");
DataTable dt = new DataTable("mytable");
DataColumn c1 = new DataColumn("c1");
DataColumn c2 = new DataColumn("c2");
ds.Tables.Add(dt);
dt.Columns.Add(c1);
dt.Columns.Add(c2);

*********************************************

hope this would help

best regards

khano
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top