C# .NET - can I select row in listview that has multicolumns?

Asked By MJ L on 21-Jan-10 03:53 AM
my listview has multicolumns and in that first column is checkboxes only

so if I click my listview, I just select a empty first column
(because I don't want text in first column, want only check box)
I want to split check box and other columns.


therefore I need to select row.
my supervisor want multiselect by Ctrl key on keyboard.
not only checkbox by mouse.
or if I can select row in listview, it have to check on check box (first column) that row.

I can't use custom control. just I have to use default list view.

any solution do you have?

thank you in advance. I hope you will good everything.


Re

Huggy Bear replied to MJ L on 21-Jan-10 04:26 AM
Multiple selection of rows is not supported by CheckedListbox yet even though SelectionMode property displays option MutiSimple and MultiExtended. But by default you should be able to check multiple check boxes. Note that selecting a row here is not same as checking the check box.

In order Check a checkbox on click of a row then enable the property CheckOnClick

checkedListBox1.CheckOnClick = true;

I'm sorry but

MJ L replied to Huggy Bear on 21-Jan-10 04:29 AM
my intend to select a row where item I clicked

not just focus item. i want to focus row unit.

do i change background color on click event?

or can I select row and present focus row unit?