看看这篇文章
http://www2.lszy.net/tm/Article_Show.asp?ArticleID=1446

解决方案 »

  1.   

    <asp:templatecolumn>
    <itemtemplate>
    ............
    </itemtemplate>
    <ItemStyle ForeColor="#FF0000"></ItemStyle>
    </asp:templatecolumn>
      

  2.   

    对不起,我说的是在WinForm下面,用DataGridColumnStyle 怎样改变一个列的字体颜色?
      

  3.   

    try:DataGridTableStyle ts = new DataGridTableStyle();
     ts.MappingName = dtable.TableName;
     
     DataGridTextBoxColumn textBoxColumn = new DataGridTextBoxColumn();
          textBoxColumn.MappingName = dtable.Columns["ID"].ColumnName;//ID column
      textBoxColumn.HeaderText = textBoxColumn.MappingName;
           
      textBoxColumn.TextBox.ForeColor = Color.Red;
      

  4.   

    plus this: this.dataGrid1.TableStyles.Add(ts);