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

gridview当前行问题
protected   void     GridView1_RowCreated(object   sender,   GridViewRowEventArgs   e)
{
                int   newsId   =   Convert.ToInt32(e.Row.Cells[0].Text);
                .......
我要或取GridView当前行的NewsId字段的ID,这样会出错,RowCreated是不会其他RowDeleting,RowUpdating时没问题,该咋获取呢?

------解决方案--------------------
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
}