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.

Recommended Answers

All 2 Replies

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 . . .

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.