C1List Sort, C1Flexgrid not working

Posted by: softcomlimited on 18 November 2019, 1:22 pm EST

    • Post Options:
    • Link

    Posted 18 November 2019, 1:22 pm EST

    Hello,

    Is there any requirement for sorting to work other than setting “C1List.AllowSort = True” or “C1Flexgrid.AllowSort = True”? Does the type of datasource matter or anything like that?

    On the flex grid “.AllowFilter = True” works fine but not the sort.

    Thanks in advance

    Brian

  • Posted 19 November 2019, 5:26 am EST

    Hello,

    The only reasons for sorting to not work can be:

    1. Using bound and unbound columns, in which case sorting does not work for unbound column.

    2. Using a List as Data Source of FlexGrid. See this link to solve this problem:

      https://www.grapecity.com/en/blogs/sort-c1flexgrid-bound-to-a-bindinglist

    If you’re using a DataTable as DataSource, can you please send a small sample replicating the issue or modify the attached sample so I can investigate this further?

    Regards,

    Prabhat Sharma.

    FlexGridSortingDemo.zip

  • Posted 19 November 2019, 8:46 am EST

    Mr Sharma,

    Yes I think #2 is the problem, a List worked with another brand of control. Even tried a BindingList.

    Thanks for the sample.

    Brian

Need extra support?

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

Learn More

Forum Channels