Foxtable(狐表)用户栏目专家坐堂 → 请教狐狸爸爸关于DataList


  共有10716人关注过本帖平板打印复制链接

主题:请教狐狸爸爸关于DataList

帅哥哟,离线,有人找我吗?
yhl1122
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:39 积分:358 威望:0 精华:0 注册:2011/10/29 15:55:00
请教狐狸爸爸关于DataList  发帖心情 Post By:2011/11/12 14:57:00 [只看该作者]

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我中帮助中查询不到,代码的第一句也不知道是什么意思,请狐狸爸爸指点一下


 回到顶部