Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting a row and column in a listview control 1

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
I have an application where I have to know the cell that was selected in the listview during a mouse click event. The row and column number must be available for me to know that. As far as I know I can only establish the row only or the column only that was selected. Can anybody help. I know I can use the flexigrid control to establish this, but I have other reasons for using the listview control.
 
Hi peekay!<br>
<br>
The listview (in details view) typically only allows you to select the first column. You can call the SendMessage Win32 function to send it a message to enable full-row-select, but that doesn't sound like what you want.<br>
<br>
What it *does* sound like what you want is a grid control. Sorry. The listview just doesn't do cell selection.<br>
<br>
Chip H.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top