Xamarin.Android Flexgrid single click edit

Posted by: chris on 2 February 2021, 8:16 am EST

    • Post Options:
    • Link

    Posted 2 February 2021, 8:16 am EST

    Hi, is there a built in switch to allow editing via a single tap instead of double tap?

  • Posted 2 February 2021, 11:40 pm EST

    Hi Chris

    To achieve this, capture the CellTapped event of the FlexGrid, and call the StartEditing method of the FlexGrid by passing the row/column which is tapped.

         private void Grid_CellTapped(object sender, GridInputEventArgs e)
            {
                grid.StartEditing(e.CellRange.Row, e.CellRange.Column, true);
            }
    

    For reference please have a look at the “GettingStarted” sample of the attached FlexGrid101 sample.

    Please let me know if you need any other help.

    Thanks

    FlexGrid101.zip

Need extra support?

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

Learn More

Forum Channels