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