how to insert value into DataGridView Cell?

前端 未结 5 1843
失恋的感觉
失恋的感觉 2021-02-05 14:24

I have DataGridView (that hold any DataBase)

I want to insert any value into any Cell (and that this value will save on DataBase)

How t

5条回答
  •  感动是毒
    2021-02-05 14:26

    int index= datagridview.rows.add();
    datagridview.rows[index].cells[1].value=1;
    datagridview.rows[index].cells[2].value="a";
    datagridview.rows[index].cells[3].value="b";
    

    hope this help! :)

提交回复
热议问题