We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to make a DataGrid editable

Thread ID:





129070 Feb 24,2017 05:41 AM Mar 2,2017 05:21 AM WinRT 3
Tags: SfDataGrid
Muhammad Mobeen
Asked On February 24, 2017 05:41 AM


I am trying to make data grid editable but failed. I have following property class.

 public class ProcedurePerformed
        public int ID { get; set; }
        public string CASEID { get; set; }
        public string PROCEDUREPERFORMED { get; set; }
        public DateTime PROCEDUREDATE { get; set; }
        public string COMPLICATION { get; set; }
        public bool IsAlreadySaved { get; set; }

I just want to show three properties (PROCEDUREPERFORMED , PROCEDUREDATE , COMPLICATION ) in datagrid and want to edit them in grid.
where PROCEDUREPERFORMED should input through Dropbox, PROCEDUREDATE should input through DatePicker, and COMPLICATION through TextBox .


Gnanasownthari Thirugnanam [Syncfusion]
Replied On February 27, 2017 04:58 AM

Hi Muhammad, 
Thank you for contact Syncfusion Support. 

We have analyzed your query, you can achieve your requirement “data grid editable” by setting SfDataGrid.AllowEditing as true for SfDataGrid or editing particular column by setting GridColumn.AllowEditing as true like below code example. 
<syncfusion:SfDataGrid x:Name="grid"  
                               DataContext="{StaticResource dataContext}" 
                               ItemsSource="{Binding OrderInfoCollection}"> 
                <syncfusion:GridTextColumn HeaderText="COMPLICATION" MappingName="COMPLICATION" AllowEditing="True"/> 
                <syncfusion:GridComboBoxColumn ItemsSource="{Binding Companies, Source={StaticResource dataContext}}" MappingName="PROCEDUREPERFORMED" /> 
                <syncfusion:GridDateTimeColumn MappingName="PROCEDUREDATE" /> 

We have prepared the sample for your requirement, you can download the same from below mentioned location. 

Sample location: 

You can refer the below UG ink.  

Gnanasownthari T. 

Muhammad Mobeen
Replied On March 1, 2017 01:39 AM

Respected Gnanasownthari T. ,

Thanks for your support. It really helpful for me. Now I am out of bottleneck.

Thanks  :)

Balamurugan Rajaraman [Syncfusion]
Replied On March 2, 2017 05:21 AM

HI Muhammad, 
Thanks for the update.

Please let us know if you need further assistance on this. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.