开发者

Empty row in grid view

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜