有两种方法:
1.在dataGrid中的属性用dataSource绑定dataSet,dataMember绑定dataSet.数据表。然后用dataGrid中的TableStyles来绑定列
2.在oleDbDataAdapter属性中的TableMapping中映射列

解决方案 »

  1.   

    我说不是怎样绑定数据源啊~在GRID中已经设置好标题的各个属性
    this.description.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
    this.description.Format = "";
    this.description.FormatInfo = null;
    this.description.HeaderText = "说明";
    this.description.MappingName = "Description";
    this.description.ReadOnly = true;
    this.description.Width = 75;但是在使用DataSource = myDataTable,绑定类型为DataTable的数据源后,标题显示的还是DataTable中的标题, 而不是我定义的DataGrid标题,这是为什么?
      

  2.   

    你用DataView看看
    DataView ds = new DataView(你的dataSet)DataSource =ds
      

  3.   

    代码中没有把你定义的样式应用到DataGrid中,添加类似于
    this.dataGrid1.TableStyles = this.dataGridTableStyle1;
    的代码看看
      

  4.   

    DataGrid的相关问题都可以参考这里
    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp