日期:2014-05-18  浏览次数:20450 次

GRIDVIEW帮定后的列名怎么取?
GridView1为自动帮定列;

GridView1.DataSource   =   ds;
GridView1.DataBind();

protected   void   GridView1_RowUpdating(object   sender,   GridViewUpdateEventArgs   e)
        {
怎么取列名?
}

------解决方案--------------------

GridView gv = new GridView();
gv.Columns[0].HeaderText
------解决方案--------------------
up
------解决方案--------------------
HeaderText
------解决方案--------------------
1L