Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView vs DataGridView
Message
From
04/02/2010 00:33:31
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01447350
Message ID:
01447414
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform