I have a ListView in Details view with Multiselect off. I need to place
a ComboBox on top of one subitem within the selected ListViewItem. I can
do this easily when the user changes the selection. However, I can't
find a simple way to detect when the user scrolls the items (so I can
move the ComboBox).

The approach that seems the most promising is to handle the Paint event,
examine the bounding rectangles, and move/show/hide the ComboBox if
necessary. This would also solve my other problem of how to adjust the
width of the ComboBox if the user resizes the columns.

I thought I would ask the list if there's an easier way to intercept the
scrolling and the column resizing actions. Hey Microsoft -- how about
adding events for these actions in a future version?

Thanks.

Richard J. Kucia

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to