Dim ks As WinForm.TabControl = e.Form.Controls("项目分类")
Dim cmd As New SQLCommand
Dim ds As DataTable
Dim cmb As WinForm.ComboBox
cmd.C
cmd.CommandText = "Select * Fr om {原料及加工词典}"
ds = cmd.ExecuteReader(True)
Tables("原料及加工词典_项目").DataSource = ds
Tables("原料及加工词典_项目").AllowEdit = True
Tables("原料及加工词典_项目").Filter = "分类 = '项目分类' and 项目分类 = '" & ks.SelectedPage.Name & "'"
Tables("原料及加工词典_项目").SetColVisibleWidth("类别|80")
Dim r As Row = Tables("原料及加工词典_项目").AddNew()
r("分类") = "项目分类"
r("项目分类") = ks.SelectedPage.Name
不知道为什么,增加的行不是在最后一行,请问哪里错了