Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I read many article in Codeproject for list control but I unable to implement list control check box in second position.
Everytime it comes in first position.
I am able to implement the header checkbox at second position.

Something is missing.

Can anyone please explain me how to add control in other position except first position.

Code is lengthy so I am not attaching code here.

Thanks in advance.

<modified>
To add checkbox in control i use
m_listCtrl.SetExtendedStyle( m_listCtrl.GetExtendedStyle() | LVS_EX_CHECKBOXES | LVS_EX_GRIDLINES);
now checkbox is displayed on control but at first column. i want the checkbox is displayed on second column.
Posted
Updated 30-Nov-10 7:50am
v3
Comments
Dalek Dave 30-Nov-10 4:30am    
Edited For Grammar and Syntax.

I think the trick is to leave them in the first column, but move that first column to the second position.

You can use the ListView_SetColumnOrderArray Macro[^] to do this.
 
Share this answer
 
Comments
ShilpiP 1-Dec-10 1:57am    
Thanks Thaddeus,
It works :)
 
Share this answer
 
Comments
ShilpiP 1-Dec-10 2:14am    
Thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900