C1DataGrid: SelectedRows

Posted by: topran on 18 December 2017, 11:36 pm EST

    • Post Options:
    • Link

    Posted 18 December 2017, 11:36 pm EST

    Hi,

    how can I read all selected rows in MVVM-Environment?

    Codebehind is easy, but I’m missing such a parameter to do it in MVVM.

    Best regards,

    Thomas

  • Posted 19 December 2017, 5:44 pm EST

    Hi Thomas,

    You may use SelectedItems to get the list of selected records. Attached is a sample application in MVVM showing all the selected records on a Button click.

    Let me know if there is anything else you need.

    Thanks,

    Ruchir Agarwal

    DataGridSample_MVVM.zip

  • Posted 3 January 2018, 6:45 pm EST

    Thanks for your example, but reading SelectedItems is Code-Behind and not MVVM.

  • Posted 3 January 2018, 10:45 pm EST

    Hi,

    Sorry for our previous reply.

    This is not possible directly in C1DataGrid to bind a property SelectedItems. So

    I attached a sample application that created a DependancyProperty to achieve your requirement.

    Hope, it will solve your issue.

    Thanks,

    Singh

    DataGridSeletedItems.zip

Need extra support?

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

Learn More

Forum Channels