16,557
社区成员
发帖
与我相关
我的任务
分享
dim tb as datatable=ds.Tables("数据表名")
Dim newRow As DataRow
newRow = tb.NewRow()
newRow("项号") = "sdasd"
kasdhfk
tb.Rows.Add(newRow)
dim tb as datatable=ds.Tables("数据表名")
Dim newRow As DataRow
newRow = tb.NewRow()
newRow(0).Value = a - 1
newRow(1).Value = TextBox1.Text
newRow(2).Value = TextBox2.Text
newRow(3).Value = TextBox3.Text
newRow(4).Value = TextBox4.Text
newRow(5).Value = TextBox5.Text
tb.Rows.Add(newRow)
DataGridView1.DataSource= tb