P
Park2
Visual studio 2005 C#.
I have the following code
DataTable table;
table = dataSet1.Tables["Park1"];
// Use the NewRow method to create a DataRow with
// the table's schema.
DataRow newRow = table.NewRow();
// Set values in the columns:
newRow["Column1"] = "NewCompanyID";
newRow["Column2"] = "NewCompanyName";
// Add the row to the rows collection.
table.Rows.Add(newRow);
// Save Changes
dataSet1.park1.DataSet.AcceptChanges();
I created the datasource in visual studio by
adding new item
adding dataset
created a table called Park1 with colums.
Inc (Key)
column1
column2
When I run on my device all goes as planned except I cannot edit the data in
the grid and when I exit the app and re-run the table does not retain the
data.
Any help appreciated
I have the following code
DataTable table;
table = dataSet1.Tables["Park1"];
// Use the NewRow method to create a DataRow with
// the table's schema.
DataRow newRow = table.NewRow();
// Set values in the columns:
newRow["Column1"] = "NewCompanyID";
newRow["Column2"] = "NewCompanyName";
// Add the row to the rows collection.
table.Rows.Add(newRow);
// Save Changes
dataSet1.park1.DataSet.AcceptChanges();
I created the datasource in visual studio by
adding new item
adding dataset
created a table called Park1 with colums.
Inc (Key)
column1
column2
When I run on my device all goes as planned except I cannot edit the data in
the grid and when I exit the app and re-run the table does not retain the
data.
Any help appreciated