protected void DataGrid1_ItemDataBound(object sender, DataGridItemEventArgs e) { e.Item.Cells[i].Attributes.Add("style", "display:none"); //i为要隐藏的列索引 }