我基于this other question来显示一个包含一些列(还没有要填充的行,只有列)的DataGrid: 我有以下源码: cs文件: public partial class MainWindowobject sender, ...) dt_main = new DataTable("dt_main"); // just a default name, no such table} XAML文件: <
我可以添加哪些代码来使用objectdataprovider来显示返回数据集DefaultView的所有列(例如,所有列中的2列)?我使用这个来编写这个工作代码。robot_data}" </Window.Resources> <DataGrid-- create an instance of our DataProvider cla