Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Listview behaviour
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Strange Listview behaviour
Divers
Thread ID:
01138022
Message ID:
01138022
Vues:
76
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform