【发布时间】:2018-04-08 23:19:31
【问题描述】:
如何添加另一行 填完第一行[0]?
public void preencherDTG()
{
DTG.Rows.Clear();
for (int i = 0; i < 10; i++)
{
DTG.Rows[0].Cells[0].Value = cbModelo.Text;
DTG.Rows[0].Cells[1].Value = txtPlaca.Text;
DTG.Rows[0].Cells[2].Value = txtTotal.Text;
}
}
【问题讨论】:
标签: c# forms datagridview rows cells