Controls in ListView detail view columns.

S

Sin Jeong-hun

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top