当前位置: 代码迷 >> ASP.NET >> gridview当前行有关问题
  详细解决方案

gridview当前行有关问题

热度:9181   发布时间:2013-02-25 00:00:00.0
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)
{
}
  相关解决方案