Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将转发器与一些只有一条记录的结构绑定。数据表已填充。我试图将它与数据行或数据行视图绑定,但它不允许这样做。请问有什么建议吗?
我可以使用 Linq 查询吗?如果可以,请指导我选择第一行数据表的查询?
尝试这个
Dim drList As New List(Of DataRow) drList.Add(myDataTable.Rows(0)) 'add the first row in the datatable myRepeater.DataSource = drList