Xamarin.Android Flexgrid Databinding

Posted by: chris on 27 October 2020, 8:13 pm EST

    • Post Options:
    • Link

    Posted 27 October 2020, 8:13 pm 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 28 October 2020, 2:01 am 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, 3:30 pm EST

    Thanks, I am not seeing the datatable example however.

    I tried this quickly:

    Datatable dt = new Datatable();

    grid.ItemsSource = dt; ← error

  • Posted 30 October 2020, 8:09 am 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