Grid View 控件 通过迟绑定 获取值

 nti.Ntid = int.Parse(gvNewsType.DataKeys[e.RowIndex].Values[0].ToString());
 nti.Title = ((TextBox)gvNewsType.Rows[e.RowIndex].FindControl("tbTitle")).Text;
 nti.Allow = int.Parse(((RadioButtonList)gvNewsType.Rows[e.RowIndex].FindControl("rbtnDisplay")).SelectedValue.ToString());

posted @ 2008-10-15 10:44  UouHt  阅读(309)  评论(0编辑  收藏  举报