C1TrueDBGrid: How to set the SortDirEnum sign in a Columnheader

Posted by: s.wortmann on 8 December 2017, 12:55 am EST

    • Post Options:
    • Link

    Posted 8 December 2017, 12:55 am EST

    I would like to know, how to set the SortDirEnum sign (ASC, DESC, None) in a sorted Columnheader by Code.

    A short Statement in VB.net would be nice.

    Thanks

    Stephan

  • Posted 10 December 2017, 4:43 pm EST

    Hi Stephan,

    You could use the following code to set SortDirEnum.

    Me.C1TrueDBGrid1.Columns(0).SortDirection = C1.Win.C1TrueDbGrid.SortDirEnum.Ascending

    Please let me know, if this helps.

    Thanks

    +Manindra

  • Posted 10 December 2017, 5:07 pm EST

    Hi!

    Thanks Manindra.

    And, Stepehan! You can use SortDirEnum in any of the given ways:

    C1TrueDBGrid1.Columns(0).SortDirection = C1.Win.C1TrueDBGrid.SortDirEnum.Ascending
    

    Or

    C1TrueDBGrid1.Splits(0).DisplayColumns(0).DataColumn.SortDirection = C1.Win.C1TrueDBGrid.SortDirEnum.Ascending
    

    Regards,

    Meenakshi

  • Posted 13 December 2017, 8:16 pm EST

    Many thanks to all, it works.

    Regards

    Stephan

Need extra support?

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

Learn More

Forum Channels