By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,574 Members | 1,201 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,574 IT Pros & Developers. It's quick & easy.

Question about controls

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.