以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请教狐狸爸爸关于DataList  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=14214)

--  作者:yhl1122
--  发布时间:2011/11/12 14:57:00
--  请教狐狸爸爸关于DataList

Dim dst As WinForm.DataList = e.Form.Controls("DataList1")
For Index As Integer = 0 To dst.Count - 1
    If dst.GetChecked(Index) Then
        Dim dr1 As DataRow = dst.GetDataRow(Index)
        Dim dr2 As DataRow = DataTables("表B").AddNew()
        For Each dc As DataCol In DataTables("表A").DataCols
            dr2(dc.Name) = dr1(dc.Name)
        Next
    End If
Next

这段代码中的DataList我中帮助中查询不到,代码的第一句也不知道是什么意思,请狐狸爸爸指点一下


--  作者:狐狸爸爸
--  发布时间:2011/11/12 16:37:00
--  

DataList 这个控件是测试阶段才有的,正式版本已经删除了。

建议多看帮助,只有充分掌握帮助,看他人的文件才有意义。

[此贴子已经被作者于2011-11-12 16:37:41编辑过]

--  作者:yhl1122
--  发布时间:2011/11/12 17:12:00
--  
哦,谢谢