0

hi
please help me..how can i add checkbox in a listview?
i already set the properties of listview checkboxes to TRUE.
but it appears in the first column..i wanted it on the last column..
is it possible??
or the other way:
programmatically move the first column (with checkbox) to
the third/last column..

thank you.

2
Contributors
2
Replies
22
Views
4 Years
Discussion Span
Last Post by newbie26
0

checkboxes are added to first column and i dont know the exact way which can add checkboxes to other column

programmatically move the first column (with checkbox) to
the third/last column..

yes , you can do that by using the following :-

ListView1.ColumnHeaders(1).Position = 3

the above statement will result in what you want to do . . .but make sure that for this you've already added column headers.

and if you dont know how to add headers to listview then have a look at following :-

ListView1.ColumnHeaders.Add , , "Header1"
ListView1.ColumnHeaders.Add , , "Header2"
ListView1.ColumnHeaders.Add , , "Header3"

hope this helps you to solve the issue . . .

0

thanks rishif..you gave me idea.
i just added codes so the subitems will also move in the desired position.
thanks.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.