æ¹æ³:
å¨this.GridView1.DataSource =bind() ;
this.GridView1.DataBind();
åé¢å
for(int i=0;i<GridView1.Rows.Count;i++)
{
TableCell tc=GridView1.Rows[i].Cells[0]; //å®ä¹ç¬¬ä¸å
tc.Visible=false; //éèææè¡ä¸ç第ä¸åæ°æ®
}
//顺便éèå头
GridView1.HeaderRow.Cells[0].Visible = false;
温馨提示:答案为网友推荐,仅供参考