Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > datagridview of listview?
 

datagridview of listview?

while both datagridview of listview has the same features when it comes to populating data from database, what would you recommed to use?

ot let me ask it in this way: when to use datagridview and when to use listview?

Jassim Rahma  Sunday, November 05, 2006 3:45 AM

datagridview allows you to format the way the data can be seen and allows you to edit the data if you like on the fly in the grid as well as removing data too I believe. Same thing can be done in the listview but not as easy as datagridview. There are also many many more features in the datagridview than a listview and datagridview was designed for this purpose - pretty much a mini database representation and functionality locally on the client.

you can add controls in a datagridview column as well like a combobox if you like, with a listview I don't think you can exactly.

datagridview also allows you to validate cells and prompt for correct input for example before leaving the cell. it really depends what your app is needing to do. If its more towards a database functionality then a DGV would be the way to go

ahmedilyas  Sunday, November 05, 2006 3:50 AM

datagridview allows you to format the way the data can be seen and allows you to edit the data if you like on the fly in the grid as well as removing data too I believe. Same thing can be done in the listview but not as easy as datagridview. There are also many many more features in the datagridview than a listview and datagridview was designed for this purpose - pretty much a mini database representation and functionality locally on the client.

you can add controls in a datagridview column as well like a combobox if you like, with a listview I don't think you can exactly.

datagridview also allows you to validate cells and prompt for correct input for example before leaving the cell. it really depends what your app is needing to do. If its more towards a database functionality then a DGV would be the way to go

ahmedilyas  Sunday, November 05, 2006 3:50 AM

You can use google to search for other answers

Custom Search

More Threads

• Adding an Edit Column
• Disabling CheckedListBox items
• Adding in rows to a form
• C# .NET 2.0 -- DataGridView bound to DataSet -- automatically update?
• datagridvalue of a cell is showing "" when I put a 0 in it
• ComboBox Cell with Highlight facility
• Nullable(of Date) databinding validation
• getting the value of a selected cell in a datagrid view
• when you type www.rediffmail.com it comes with with http://www.rediff.com/index.html
• DataGridView Scientific Format Data Entry