摘要: 引用:http://www.cnblogs.com/sqzhuyi/archive/2011/07/26/sqlserverclient.html#2831497功能介绍:输入查询语句,显示列表出现的问题:datatable中的列名是包含下划线的,但是绑定到datagrid后就看不到了,求解!绑定代码: private DataGrid BindGrid(DataTable dt) { DataGrid dg = new DataGrid(); dg.IsReadOnly = true; dg.ItemsSource = dt.DefaultView; return dg; } 阅读全文
posted @ 2013-12-16 16:51 tiasys 阅读(1524) 评论(1) 推荐(0) 编辑