How To Add Full Row Select Functionality to a ListView Control (181440)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q181440 SUMMARY
The default behavior of the ListView control, when in Report View, is the
ability to select only the item on the far left of the list. If you try to
select any of the sub-items, nothing happens. Only the first item is
available to be selected.
You can avoid this limitation by adding a ListView extended style,
LVS_EX_FULLROWSELECT, to the current ListView style. With this extended
style you can select any sub-item and the entire row will be selected.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto KB181440 |
---|
|