可以在itemcreated中修改,如:
http://218.84.107.5/n.aspx

解决方案 »

  1.   

    大概不能的!Columns是列的集合,可以设置列的属性,包括Visible、HeaderText、FooterText、SortExpression等。非自动生成列HeaderText可以设置:
    DataGridColumn dgColumnData = DataGridBase_PO.Columns[1];
    dgColumnData.HeaderText = "aa";但是:自动生成的列,是不包含在Columns中的。只有在.aspx中显示声明的列和在代码中添加的列才会被包含在其中。
      

  2.   

    在ItemCreated事件中:
    if (e.Item.ItemType == ListItemType.Header)
    {
      e.Item.Cells[0].Text = "第一列";
      e.Item.Cells[1].Text = "第二列";
    }
      

  3.   

    to:icyer() 
    你真是高手!!!我已经把它搞定,我要结贴了,谢谢各位热心人!!!