In this test - I am trying to check the items in the ultralistview and no items are being checked. can anyone assist on what is wrong?
Could a property be set on the listview causing the items not to be checked?
For i As Integer = 0 To UltraListView2.Items.Count - 1
UltraListView2.Items(i).CheckState = CheckState.Checked
'CType(IIf(sdays.Chars(i) = "1"c, CheckState.Checked, CheckState.Unchecked), CheckState)
Next
Are the items displaying CheckBoxes that are just unchecked? Or are they displaying no check boxes at all?
I am also having this problem.....
Me.LVLocationsFilter.Items(strItemKey).CheckState = CheckState.Checked
The checkboxes just don't get ticked. they Appear "unchecked"
Any ideas?
Cheers!
I just tested this out and it works fine for me. All I did was put a new UltraListView control on a form in a new project and added the following code:
Imports Infragistics.Win.UltraWinListViewPublic Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.UltraListView1.View = UltraListViewStyle.List Me.UltraListView1.ViewSettingsList.CheckBoxStyle = CheckBoxStyle.CheckBox Me.UltraListView1.Items.Add("A", "A") Me.UltraListView1.Items.Add("B", "B") Me.UltraListView1.Items.Add("C", "C") Me.UltraListView1.Items("A").CheckState = CheckState.Checked End SubEnd Class
Maybe you need to get the latest Hot Fix.
UltraListView does not currently support that behavior. If you like you can visit http://devcenter.infragistics.com/Protected/RequestFeature.aspx and submit a request for the feature. Note that it does support checking all selected items when the spacebar is pressed. Also note that you could probably implement the CheckOnClick behavior easily by handling the ItemSelectionChanging event and setting the CheckState property of the item directly.
What's the setting for having the items checked when clicked?
In the checkedlistbox control, there's a CheckOnClick property.