62,046
社区成员
发帖
与我相关
我的任务
分享
if (e.Row.RowType == DataControlRowType.DataRow)
//取某一行某一列的值
string strtemp = gridview1.Rows[行索引].Cells[列索引].Text;
//取某一行某一列中控件的值
控件类型 ctrtemp = gridview1.Rows[行索引].Cells[列索引].FindControl("控件名") as 控件类型;
string strtemp=strtemp.Text;
protected void ProGridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//伪代码
}
}