在一个页面上我放了三个DataList,代码如下,不知何故,只是显示出第一个,代码如下:
Dim dst1 As WinForm.DataList = Forms("导航").Controls("DataList1")
dst1.DataTable = DataTables("员工档案")
dst1.Build()
Dim Lbl1 As WinForm.Label = Forms("导航").Controls("Label1")
Lbl1.Text = "员工档案"
Dim dst2 As WinForm.DataList = Forms("导航").Controls("DataList2")
dst2.DataTable = DataTables("员工档案.家庭成员")
dst2.Build()
Dim Lbl2 As WinForm.Label = Forms("导航").Controls("Label2")
Lbl2.Text = "家庭成员"
Dim dst3 As WinForm.DataList = Forms("导航").Controls("DataList3")
dst3.DataTable = DataTables("员工档案.个人简历")
dst3.Build()
Dim Lbl3 As WinForm.Label = Forms("导航").Controls("Label3")
Lbl3.Text = "个人简历"
我查到原因了,呵呵,我放在选择不同页面事件中的代码忘放:
dst2.Build()
dst3.Build()
呵呵
路过
[此贴子已经被作者于2009-5-6 19:17:29编辑过]