Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Listview behaviour
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Strange Listview behaviour
Miscellaneous
Thread ID:
01138022
Message ID:
01138022
Views:
75
Hello All, the code below used to work with VS 2003 ! but it doesn't in VS 2005. I'm sure you all know what the code is doing but I'll run through it anyway, when I'm loading the lv I check to see if a field in a datarow has a value of 1 (and cast it to a bool ) , and if so, check the item. Whats happening with VS 2005 is, only the first item in the list is being checked ! (read - checkbox is being checked ), anyone know why ?
ListViewItem item;

foreach (DataRow dr in this.dsClaims.Tables[0].Rows)
{
    lvItem = new ListViewItem(dr["PayDetailsConf"].ToString());
    lvItem.Text = "";
    lvItem.Checked = (bool)(dr["PayDetailsConf"]);
}
regards
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform