你是通过什么方法设置的DataSource,我通过下面代码设置之后可以使用GetData方法:
- Dim dt As New DataTable("dt")
- dt.Columns.Add("col1")
- dt.Columns.Add("col2")
- dt.Columns.Add("col3")
- dt.Columns.Add("col4")
- dt.Rows.Add(1, 11, 111, 1111)
- dt.Rows.Add(2, 21, "?", 2111)
- dt.Rows.Add(3, 31, 311, 3111)
- dt.Rows.Add(4, 41, 411, 4111)
- _flex.DataSource = dt
复制代码 |