Controls in ListView detail view columns.

Controls in ListView detail view columns.

Post by Sin Jeong- » Tue, 27 Feb 2007 20:04:08


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.
 
 
 

Controls in ListView detail view columns.

Post by Patrick St » Tue, 27 Feb 2007 22:56:15

In article < XXXX@XXXXX.COM >,
XXXX@XXXXX.COM says...

This might work for you:

http://www.yqcomputer.com/

--
Patrick Steele
http://www.yqcomputer.com/

 
 
 

Controls in ListView detail view columns.

Post by Sin Jeong- » Wed, 28 Feb 2007 18:22:39


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.