求助 动态生成控件及动态绑动例 Post By:2017/4/16 13:18:00 [只看该作者]
您好!老师:
下边的代码只能绑定一行,能不能绑定所有的行?谢谢!
For Each r As Row In Tables("qrymyf").rows Dim txt As WinForm.TextBox txt = e.Form.CreateControl("TextBox" & r.index, ControlTypeEnum.TextBox) txt.BindingField = "qrymyf.ffikgn" txt.Left = 100 txt.Top = 50*r.index + 100 e.Form.AddControl(txt) Next