WPF 的datagrid 列名中没有显示下划线是怎么回事?
功能介绍:输入查询语句,显示列表
出现的问题:datatable中的列名是包含下划线的,但是绑定到datagrid后就看不到了,求解!
绑定代码:
private DataGrid BindGrid(DataTable dt)
{
DataGrid dg = new DataGrid();
dg.IsReadOnly = true;
dg.ItemsSource = dt.DefaultView;
return dg;
}
本文转自tiasys博客园博客,原文链接:http://www.cnblogs.com/tiasys/p/3477033.html,如需转载请自行联系原作者