Datagrid vs Listview in Winforms

  • Thread starter Thread starter Alejandro Bibiano González
  • Start date Start date
A

Alejandro Bibiano González

Datagrid or ListView



I have a form to update data in a table.

The form has a grid layout with rows and columns. When users double-click a
cell, I want to highlight all the row and open a second window to edit the
selected record. I also want sort functionality when the user clicks on the
column header.



I have tried to do it with Datagrid, but the Rowselect is not implemented,
to avoid the edit effect in the Datagrid I have to write a lot of code, and
it's slower than ListView.



I thing Listview is a better solution, but it hasn't the column sort
implemented. I know it is relative simple to implement, but I can't draw the
sort icons in the header.



Is there a control that implements this? What is the best approach to my
problem? I'm very surprise that Microsoft don't implement the same sort
functionality from Datagrid in the ListView.



A lot of thanks,


*******************************************
Alejandro Bibiano González
-Departamento Informática-

INDUSTRIAS LAUBAT, S.A.
Tlf +34 93 728 36 03
Fax +34 93 728 36 14
(e-mail address removed)
http://www.laubat.com
*******************************************
 
Back
Top