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