Pocket PC Datset

  • Thread starter Thread starter Echo
  • Start date Start date
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.
 
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
 
Back
Top