Help with displaying Grid column in Multiselect control

Posted by: Victor.m.charles.civ on 7 October 2020, 12:48 pm EST

    • Post Options:
    • Link

    Posted 7 October 2020, 12:48 pm EST

    Hi,

    How do modify to code below to only display visible columns in the Grid control on a Multiselect control? I am displays different columns on the grid depending on search results.

    C1MultiSelect1.Items.Clear()

    For i As Integer = 0 To C1TrueDBGrid3.Splits(0).DisplayColumns.Count - 1

    C1MultiSelect1.Items.Add(C1TrueDBGrid3.Splits(0).DisplayColumns(i).Name)

    Next

    C1MultiSelect1.TagWrap = True

    Thanks,

    Victor

  • Posted 8 October 2020, 6:52 am EST

    Hi,

    You can use the Visible property of the DisplayColumn to check which column is visible.

    A sample is attached for reference, please have a look.

    Regards,

    Prabhat Sharma.

    C1MultiSelectTDB.zip

Need extra support?

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

Learn More

Forum Channels