Question about controls

P

PiPOW

Hi. I have a question. I am developing an application and I have to choose
the most suitable control to show records from some database queries, with
freedom in customizing control layout and behavior, leaving data read-only.
Good examples might be: control showing message list in Microsoft Outlook
(or Outlook Express); download-in-progress (or upload-in-progress) control
in Emule client; every common XP-style window showing files and folders in
"details" visualization. Each of them is able to sort data clicking on
column header, with an arrow (or triangle) icon showing the selected column
for sorting.
The right choice seems to be ListView control, but I have some notes against
that:

1) the arrow icon used as sorting indicator. It was difficult to implement
in VBA (I started as a VBA programmer) because I needed Windows API, it
seems quite easy in VB6 (I read the documentation), but what about VB.NET? I
can't found a system for doing that easily with ListView control...
2) the DataGrid control could be better due to its data binding facilities,
but I don't know if I can arrange a DataGrid in a ListView-like fashion, for
example adding the sorting icons (see above). The documentation is not so
clear about that.


Anyone can help me? In choosing the control and/or customizing DataGrid for
the uses I listed.

Thank you in advance.

Edoardo, Italy
 
B

Bernie Yaeger

Hi Edoardo,

You're showing and sorting data - so the datagrid is the most appropriate
control. All of the features you need are built-in, even though some of the
functionality takes a bit of work.

As you use it and as you have needs to implement one feature or another,
just ask your questions here and you'll find answers that will guide you.

Bernie Yaeger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top