GridView到ListView [英] Gridview to listview
本文介绍了GridView到ListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
foreach (GridViewRow gvrow in gvPM.Rows)
{
int usrid = Convert.ToInt32(gvPM.DataKeys[gvrow.RowIndex].Value);
sqlDataSource.DeleteParameters["messageID"].DefaultValue = usrid.ToString();
sqlDataSource.Delete();
}
我使用顶部代码从Gridview中删除行,如何将其转换为listview?
i using the top code to delete the row from the Gridview, how to convert it to listview?
推荐答案
将listview1用作listview
listview1.item.removeat(selected.value())
adnan zaman
dim listview1 as listview
listview1.item.removeat(selected.value())
adnan zaman
这篇关于GridView到ListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文