I want to get list listview items in the static class. Because I want to pass this class variable to another class. So I have tried...
- public static class FileMngUserID
- {
- public static List<int> UserId;
- public static List<string> ImgName;
- }
- foreach (DocumentsUser item in listView1.SelectedItems)
- {
- FileMngUserID.UserId.Add(Convert.ToInt32(item.UserId));
- FileMngUserID.ImgName.Add(item.Parent_File_Name);
- }


Amit GuptaRank #190 · 12.8K reputationPosted Dec 22, 2016, 4:19 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Dec 22, 2016, 4:33 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Dec 22, 2016, 4:10 AM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Dec 22, 2016, 4:15 AM EST
Abhilash J ARank #1,243 · 1.4K reputationPosted Dec 22, 2016, 4:24 AM EST