add new row in gridview after binding C#, ASP.net

前端 未结 5 1063
攒了一身酷
攒了一身酷 2020-12-09 04:26

\"enter

I want to add a new blank row to the gridview after binding as seen in the pic

5条回答
  •  天命终不由人
    2020-12-09 04:56

    If you are using dataset to bind in a Grid, you can add the row after you fill in the sql data adapter:

    adapter.Fill(ds);
    ds.Tables(0).Rows.Add();
    

提交回复
热议问题