Xamarin.Android Flexgrid Databinding

Posted by: chris on 27 October 2020, 11:13 am EST

    • Post Options:
    • Link

    Posted 27 October 2020, 11:13 am EST

    I am trying out this control but I can’t find a lot of info on what is supported for databinding. Can I bind to a Datatable?

    If not, can I leave it unbound and just use it to display values?

  • Posted 27 October 2020, 5:01 pm EST

    Hi Chris

    =>Can I bind to a Datatable?

    Yes you can bind the grid to a datatable.

    =>can I leave it unbound and just use it to display values?

    you can leave the flexgrid unbound as well.

    For details about the binding of the FlexGrid please refer to the “ColumnDefinitionActivity” and “UnboundActivity” FlexGrid101 sample.

    You can find the sample at Documents\ComponentOne Samples\Xamarin\CS\Android\FlexGrid101

    Please let me know if you need any other help.

    Thanks

  • Posted 28 October 2020, 6:30 am EST

    Thanks, I am not seeing the datatable example however.

    I tried this quickly:

    Datatable dt = new Datatable();

    grid.ItemsSource = dt; ← error

  • Posted 29 October 2020, 11:09 pm EST

    Hi Chris,

    I have replied to your query on the original case

    https://supportone.componentone.com/casedetail/467806

    Please follow the above thread.

    Thanks

Need extra support?

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

Learn More

Forum Channels