472,125 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

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 1108
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.