473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1168
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
7
by: vindaloo1 | last post by:
I'm using Access 2000 and I have a main form and a subform. When a control on the subform is updated I am trying to update a control on the mainform. But instead of updating the control on the...
1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Fraggle | last post by:
I have a repeater with controls added at run time. the <template> also contains a <asp:textbox that is made visible on some repeater elements. when I come to read the text info out it has...
6
by: David | last post by:
I am running into situtations where confining all forms to just one window (instance of broswer) is becoming overly restrictive. Does ASP.NET provide ways to have multiple windows to interact with...
3
by: Diana M | last post by:
Hello, I have started my first asp.net application (beginner). I have 2 text boxes on the form that should contain 2 different dates (beginning and end). It would be nice to have 2 small buttons...
3
by: Gary Kahrau | last post by:
I hope this is a simple question. I have a number of usercontrols placed on a form. The usercontrol has a public property (DispMachine) within it. When looping through the main form controls, I...
3
by: Henry | last post by:
I know it is possible to store dynamic propterties for applications in XML files. The app.config and the web.config files can be used to store AppSettings... I am just wondering how far one can...
7
by: John D'oh | last post by:
Hello, I have been going through the MSDN Walkthrough: Creating a Windows Forms Control That Takes Advantage of Visual Studio Design-Time Features. Everything was going fine and I was able to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.