Help with hiding columns in C1TrueDBGrid using MultiSelect control

Posted by: Victor.m.charles.civ on 10 April 2020, 9:14 pm EST

    • Post Options:
    • Link

    Posted 10 April 2020, 9:14 pm EST

    Hello,

    I’m using the code below to load my multiselect control with all columns from C1Screen1 Grid control. How do I automatically select all the columns in my MultiSelect control and hide a column when its column name is deselected and show the column when it’s column name is selected?

    Also when I place my mouse on a column name of the Multiselect control how do I display a description? For example when place my mouse on the row with NSN, would like to display description as National Stock Number below or above the NSN…

    For ida As Integer = 0 To C1Screen1.Splits(0).DisplayColumns.Count - 1

    C1MultiSelect1.Items.Add(C1Screen1.Splits(0).DisplayColumns(ida).Name)

    Next

    C1MultiSelect1.TagWrap = True

    Thanks,

    Victor

  • Posted 13 April 2020, 7:33 am EST

    Hi Victor,

    I have created a sample as per your comments, please have a look and let us know if you have any doubt regarding this.

    Regards,

    Prabhat Sharma.

    TDBFilteringDemo_tooltip.zip

  • Posted 13 April 2020, 8:56 am EST

    Hello Prabhat,

    Enclosed is a sample project. Initially, I would like to see to all the Grid’s columns in the Multiselect control selected, and when I deselect a particular column I would like to hide it in the Grid and when I select it again I would like to see it in the Grid.

    Thanks,

    VictorWindowsAppGrid.zip

  • Posted 14 April 2020, 3:46 am EST

    Hi Victor,

    I have modified the sample as per your comments, please have a look and let us know if you have any doubts regarding this.

    Regards,

    Prabhat Sharma.

    WindowsAppGrid_Mod.zip

  • Posted 14 April 2020, 9:03 am EST

    Thank You.

  • Posted 14 April 2020, 9:09 am EST

    Hello Prabhat,

    How do I view the definitions when I place the mouse the rows? For example if I place mouse over the row with NSN, would like to display next to it “National Stock Number”

    Thanks,

    Victor

  • Posted 15 April 2020, 2:26 am EST

    Hi Victor,

    I have modified the sample as per your comments, please have a look and let us know if you have any doubts regarding this.

    Regards,

    Prabhat Sharma.

    WindowsAppGrid_mod1.zip

  • Posted 16 April 2020, 10:19 am EST

    Hello Prabhat,

    Thank you for the solution but I meant when hovering over the row of the MultiSelect control not the column of the Grid control…

    Thanks,

    Victor

  • Posted 17 April 2020, 9:13 am EST

    Hi Victor,

    Sorry for the confusion.

    Currently, it is not possible to get the hovered item in MultiSelect so we have escalated this request to the devs and will let you know once we get any updates on this from their end.

    Internal Tracking. ID: 431486



    Regards,

    Prabhat Sharma.

  • Posted 24 April 2020, 8:49 pm EST

    Hello Prabhat,

    Similar to the dropdown control inside a Grid. In the MultiSelect control, is it possible to have a “Select All” on the first row automatically selected, and clear all the selection if I deselect it?

    Thanks,

    Victor

  • Posted 27 April 2020, 4:05 am EST

  • Posted 28 April 2020, 6:38 pm EST

    Thank You.

Need extra support?

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

Learn More

Forum Channels