开发者

Empty row in grid view

开发者 https://www.devze.com 2022-12-25 09:49 出处:网络
How to add an empty row开发者_Go百科 in the grid view at the top?Insert at index 0 in your datasource.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消