这个我也不知道,我用笨方法,select name as 名称 form table

解决方案 »

  1.   

    在给每一列帮定时设置HEADTEXT为所要的列名
      

  2.   

    DataGridTableStyle ts = new DataGridTableStyle(true);
    ts.MappingName = this.dataSet1.Tables[0].TableName;
    this.datatGrid1.TableStyles.Clear();
    this.datatGrid1.TableStyles.Add(ts);
    //假设有ID列
    ts.GridColumnStyles["ID"].HeaderText = "自动ID";
      

  3.   

    这个问题我也遇到了,某个兄弟告诉我用DataGridTableStyle可以实现,但是我没有成功。后来使用在SQL语句中用了中文别名实现功能  呵呵
      

  4.   

    select name as 名称 form table