How to add an empty row开发者_Go百科 in the grid view at the top?
Insert at index 0 in your datasource.
e.g.
DataRow newRow;
newRow = dataSet.dataTable.NewRow();
newRow[0] = "a";
newRow[1] = "b";
// ...
dataSet.dataTable.Rows.InsertAt(myNewRow, 0);
How to add an empty row开发者_Go百科 in the grid view at the top?
Insert at index 0 in your datasource.
e.g.
DataRow newRow;
newRow = dataSet.dataTable.NewRow();
newRow[0] = "a";
newRow[1] = "b";
// ...
dataSet.dataTable.Rows.InsertAt(myNewRow, 0);
精彩评论