1.RowDataBound事件中
DataRowView dv = (DataRowView)e.Row.DataItem;
2.RowCommand事件中
GridViewRow dr = ((Control)e.CommandSource).NamingContainer as GridViewRow;
Label lb=(Label)dr.FindControl("Label3");
1.RowDataBound事件中
DataRowView dv = (DataRowView)e.Row.DataItem;
2.RowCommand事件中
GridViewRow dr = ((Control)e.CommandSource).NamingContainer as GridViewRow;
Label lb=(Label)dr.FindControl("Label3");