473,396 Members | 2,004 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.

Controls in ListView detail view columns.

I often use detail view of the ListView control to display tabular
data (is there any better way?)
Many real-world applications display buttons, progress bars or
dropdown lists in the columns, but it seems like ListView only allows
texts. I guess if I can only know the exact bounds of the columns, I
could overlay other Windows controls on it making the simmilar
effects. But the problem is I can't know the exact amount of change
when the user scrolls the ListView. Then I tried to set OwnerDraw true
and overlay controls (simply setting the controls' bounds) on the
SubItem's draw event. Somehow it caused endless drawing loops.

I saw an example of overlaying a dropdown list on a DataGrid, but it
also had a problem with scrolling (dropdown list didn't move to the
proper position when the DataGrid was scrolled)

I guess this kind of task is extremely needed in programming many
applications. So how do the real-world applications display controls
on the ListView control? Is there any article or example?

Thank you for reading.

Feb 26 '07 #1
2 1837
In article <11**********************@z35g2000cwz.googlegroups .com>,
ty*******@gmail.com says...
I guess this kind of task is extremely needed in programming many
applications. So how do the real-world applications display controls
on the ListView control? Is there any article or example?
This might work for you:

http://www.codeproject.com/cs/miscct...edControls.asp

--
Patrick Steele
http://weblogs.asp.net/psteele
Feb 26 '07 #2
On Feb 26, 10:56 pm, Patrick Steele <patr...@mvps.orgwrote:
In article <1172487848.638069.168...@z35g2000cwz.googlegroups .com>,
typing...@gmail.com says...
I guess this kind of task is extremely needed in programming many
applications. So how do the real-world applications display controls
on the ListView control? Is there any article or example?

This might work for you:

http://www.codeproject.com/cs/miscct...edControls.asp

--
Patrick Steelehttp://weblogs.asp.net/psteele
I haven't looked the source code but just run the executable file of
that sample project.
It seems to do what I need to do. Thanks for the link.

Feb 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
0
by: Hunters | last post by:
Once you reorder the listview items, largeicon or smallicon view will not follow the order of list or detail view which is the correct order. For example with a listview as...
3
by: Rob Richardson | last post by:
Greetings! I am attempting to display data in tabular form using a ListView control in detail mode. This is for a program I originally wrote in VB6. In VB6, I would add an item to the...
1
by: rallard | last post by:
After the following subroutine executes, my listview shows a scroll bar on the right, but it is otherwise blank. I've checked for things like locked=false, visable=true, font color same as...
5
by: twick10 | last post by:
Hi All, Is anybody aware or significant bugs in the Windows Forms ListView control?? I am having serious problems trying to switch from Large and small icon views to detail views. What looks...
4
by: Steph. | last post by:
I have a List view displaying data in Detail mode with several columns. How I can get the column index the user clicked on ? (when user click on an item inside the ListView, not on a column...
2
by: Lars Erik Nes | last post by:
Hi all. I have a problem. I get all my data from a dataset (not mssql) and in that dataset i have a table called "Activity". In this table i have a few date fields. When i display the dataset...
5
by: John Devlon | last post by:
Hi, Does anyone know how to get a value of a second column of a selected item in Listview. I've create a listview and added this code Listview.Items.Clear() Listview.Columns.Clear()...
2
by: giddy | last post by:
hi, I have a listview on a form, the View is set to Tile. I also have an image list tied to the *smallImageList property, i have one image in the image list, its a png : 32X32 When i do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.