Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView vs DataGridView
Message
De
04/02/2010 00:33:31
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01447350
Message ID:
01447414
Vues:
39
Hi Dmitry,

The DataGridView is probably easier to work with for you, particularly since you've already been playing with it. The ListView still does not have support for DataSources or DataBinding and so you have to add the Items manually and handle the SelectedIndexChanged event (or write your own DataSource/Binding functionality into a ListView sub-class). That's not necessarily a bad thing, but there is a lot more work involved and I believe you're looking for "quick and dirty" at this point, am I right?

~~Bonnie



>Hi,
>
>After trying suggestions of modifying combo box or using combo box with a form and a list box, I find that I am not happy the way either one of these works. So I decided to try building my own user control with a form where user will select an entry. The lookup form will use either listview or datagridview control. I think that datagridview control is lighter and easier to work with. But I was wondering on what people with experience of doing WinForm application think is a better choice?
>
>TIA.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform