以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]ListView 如何动态定义列名  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=102634)

--  作者:clchen
--  发布时间:2017/6/23 10:02:00
--  [求助]ListView 如何动态定义列名
ListView 的列如何从数据库中取?
Dim cls() As String = {"从数据库中取列"} \'定义列名  

--  作者:clchen
--  发布时间:2017/6/23 10:04:00
--  
如:我有三张表,表1,表2,表3 ,他们的列都不同 我要如何将他们的列动态的放入ListView 控件中
--  作者:有点蓝
--  发布时间:2017/6/23 10:33:00
--  
遍历:http://www.foxtable.com/webhelp/scr/1428.htm

Dim lst As new List(String)
For Each dc As DataCol In DataTables("订单").DataCols
    lst.Add(dc.Name)
Next