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,如需转载请自行联系原作者

相关文章:

  • 2021-11-25
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
猜你喜欢
  • 2021-12-02
  • 2021-05-20
  • 2021-07-15
  • 2022-12-23
  • 2021-07-25
  • 2021-12-07
相关资源
相似解决方案