469,647 Members | 1,728 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Question about controls

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

Nov 21 '05 #1
1 1062
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

"PiPOW" <pi***@email.it> wrote in message
news:hW*********************@news4.tin.it...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by vindaloo1 | last post: by
1 post views Thread by Natalia DeBow | last post: by
1 post views Thread by Fraggle | last post: by
6 posts views Thread by David | last post: by
3 posts views Thread by Diana M | last post: by
3 posts views Thread by Gary Kahrau | last post: by
3 posts views Thread by Henry | last post: by
7 posts views Thread by John D'oh | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.