C1 Multiselect

Posted by: serjaime on 30 October 2020, 12:26 am EST

  • Posted 30 October 2020, 12:26 am EST

    I am testing on Vb the component C1 MultiSelect.

    I have entered the values without problems :

    20DRY -> LENGH 20 DRY
    40DRY -> LENGH 40 DRY

    I used the code :


    C1Multiselect1.BindingInfo.DisplayMemberPath = F_Temp_DS.Tables(0).Columns(1).Caption.ToString
    C1Multiselect1.BindingInfo.ValueMemberPath = F_Temp_DS.Tables(0).Columns(0).Caption.ToString
    C1Multiselect1.BindingInfo.DataSource = F_Temp_DS.Tables(0)

    I can get the correct item selected with :

    For i = 0 To C1Multiselect1.SelectedItems.Count -1
    Mod_Vals.IdTypeTtes = C1Multiselect1.SelectedValues(i).ToString

    When loading the registry, I need to select the selected values recorded to the C1Multiselect1 and I honestly can't find the code, could you help me pls ?
  • Marked as Answer

    Replied 1 November 2020, 6:19 am EST

    I relpy myself :

    For i = 0 To CB_M_TipoServicio.Items.Count - 1

    If CB_M_TipoServicio.Items(i).Value = DGV_Tarifas_Clientes.Item(3, DGV_Tarifas_Clientes.CurrentRow.Index).Value Then

    CB_M_TipoServicio.Items(i).Selected = True


    CB_M_TipoServicio.Items(i).Selected = False

    End If

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels