Editing column in datagrid

I am attempting to edit a column in the data grid, but I can't get it to allow me to do so.  I have the code setup as follows:

     <grid:SfDataGrid ColumnSizer="Star"
                                                     AutoGenerateColumns="False"
                                                     ItemsSource="{Binding Inspection}"
                                                     GridStyle="{StaticResource GridStyle}"
                                                         EditorSelectionBehavior="SelectAll"
                                                         EditTapAction="OnTap"
                                                         AllowEditing="True"
                                                         >
                                            <grid:SfDataGrid.Columns>
                                                <grid:GridTextColumn HeaderText="Area of Vehicle" MappingName="Description" AllowEditing="False"/>
                                                <grid:GridTextColumn AllowEditing="True" HeaderText="Description: Damaged/Missing/OK/Correct Fluid Level" MappingName="Status" />
                                            </grid:SfDataGrid.Columns>
                                        </grid:SfDataGrid>

It displays everything correctly, but won't allow me to either tap and edit, or click and edit. Any ideas?

5 Replies

VR Vigneshkumar Ramasamy Syncfusion Team October 18, 2018 05:52 AM UTC

Hi Development,    
  
We have checked your query. To edit a cell you need to set “SfDataGrid.AllowEditing” property as “True” and additionally you have to set“SfDataGrid.SelectionMode” and “SfDataGrid.NavigationMode”.     
    
Refer the below code for reference:    
    
    
<sfgrid:SfDataGrid x:Name="dataGrid"     
                   SelectionMode="Multiple"    
                   NavigationMode="Cell"    
                   AllowEditing="True"    
                   AutoGenerateColumns="False"     
                   ItemsSource="{Binding OrderInfoCollection}"    
                   ColumnSizer="Star">    
    
    <sfgrid:SfDataGrid.Columns>    
        <sfgrid:GridTextColumn MappingName="OrderID"/>    
        <sfgrid:GridTextColumn MappingName="CustomerID"/>    
        <sfgrid:GridTextColumn MappingName="ShipCountry"/>    
        <sfgrid:GridTextColumn MappingName="Customer"/>    
        <sfgrid:GridTextColumn MappingName="ShipCity"/>    
    </sfgrid:SfDataGrid.Columns>    
</sfgrid:SfDataGrid>    
    
  
This is also mentioned in the Volume 3 release notes, please find the release notes link below.  
  
    
Please let us know if this helpful.   
  
Regards,    
Vigneshkumar R 



PG Piotr Grzywa December 2, 2018 01:17 PM UTC

Can I ask for help updates regarding grid editing?
https://help.syncfusion.com/xamarin/sfdatagrid/editing
I checked my application for a few days, why editing does not work.


VR Vigneshkumar Ramasamy Syncfusion Team December 3, 2018 11:39 AM UTC

 
Hi Piotr Grzywa 
 
Thanks for contacting the Syncfusion support. 
 
We have updated the help document for editing the cell in DataGrid with required details, please find the below UG link, where we have updated the content. 
 
 
Regards 
Vigneshkumar R 



PG Piotr Grzywa December 3, 2018 02:10 PM UTC

Thanks a lot.


VR Vigneshkumar Ramasamy Syncfusion Team December 4, 2018 05:34 AM UTC

Hi Piotr Grzywa  
 
Thanks for the update. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


Loader.
Up arrow icon