Me.FDataSet = New DataSet
Dim table As New DataTable
table.TableName = "Employees"
Me.FDataSet.Tables.Add(table)
table.Columns.Add("ID", GetType(Integer))
table.Columns.Add("Name", GetType(String))
table.Rows.Add(1, "Andrew Fuller")
table.Rows.Add(2, "Nancy Davolio")
table.Rows.Add(3, "Margaret Peacock")
以上的例子,是两个字段的时间,.Rows.Add容易写,如果有几十个字段,容易写错,有没有好的组合方法?