更新时间:2023-12-01 08:42:28
首先你需要2列添加到数据网格。你可以在设计时做到这一点。见Columns属性。
,则添加行就像你所需要的。
first you need to add 2 columns to datagrid. you may do it at design time. see Columns property. then add rows as much as you need.
this.dataGridView1.Rows.Add("1", "XX");