使用一个按钮更新多行的GridView [英] Update multiple rows of gridview with single button
本文介绍了使用一个按钮更新多行的GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在带有dropdownlist的gridview中有多行..我想用gridview之外的单个按钮更新多行,但是我有错误,请帮助我
i have multiple rows in gridview with dropdownlist..i want to update multiple rows with single button outside the gridview but i have error plz help me
string status = "";
Int32 i;
for (i = 0; i < grdUserManagement.Rows.Count; i++)
{
DropDownList ddl;
ddl = (DropDownList)(grdUserManagement.Rows[i].FindControl("ddlChangeStatus"));
if (ddl.SelectedItem) //error here
{
status += grdUserManagement.DataKeys[i].ToString() + ",";
}
status = status.Substring(0, status.Length - 1);
}
谢谢
Thanks
推荐答案
您好..
尝试访问此..
将数组或DataTable传递到存储过程中 [ ^ ]
一切顺利.
Hi there..
Try visiting this..
Passing an array or DataTable into a stored procedure[^]
all the best..
这篇关于使用一个按钮更新多行的GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文