Welcome to the Xamarin.Android feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Android, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,

In older versions I was able to develop the edit mode features and was working fine.

 Right now I cannot enter in Edit mode when certain columns are tapped.

Here is the code:

//Please note I'm not using the EditTapAction property. I call BeginEdit in the GridTapped event.
 SfDataGrid orderGrid = new SfDataGrid(this);
                    orderGrid.AllowPullToRefresh = true;
                    orderGrid.PullToRefreshCommand = new Command(OrderGridPullToRefresh);
                    orderGrid.AllowEditing = true;
                    orderGrid.CurrentCellEndEdit += OrderGrid_CurrentCellEndEdit;
                    orderGrid.GridTapped += OrderGrid_GridTapped;
                    orderGrid.ColumnSizer = ColumnSizer.Auto;

                    orderGridLayout.AddView(orderGrid, orderGridLayout.Width, 400);



 private void OrderGrid_GridTapped(object sender, GridTappedEventArgs e)
        {
                if (e.RowColumnIndex.RowIndex > 0)
                {
                    if (e.RowColumnIndex.ColumnIndex < 2 || e.RowColumnIndex.ColumnIndex > 4)
                    {
                        SeleccionaProductoaCargar(true, e.RowColumnIndex.RowIndex);
                        RotationGridPullToRefresh();
                    }
                    else
                    {
                        if (!orderGrid.IsInEditMode)
                        {
                            btnEndEdit.Enabled = true;
                            orderGrid.EditorSelectionBehavior = EditorSelectionBehavior.SelectAll;
                            
                            orderGrid.BeginEdit(e.RowColumnIndex.RowIndex, e.RowColumnIndex.ColumnIndex);
                        }
                    }
                }
        }