Xamarin.Android Flexgrid single click edit

Posted by: chris on 2 February 2021, 5:16 pm EST

    • Post Options:
    • Link

    Posted 2 February 2021, 5:16 pm EST

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

  • Posted 3 February 2021, 8:40 am 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