Hi German,
Thanks for using Syncfusion Products.
Query : Binding “Data table” to Syncfusion grid.
We are sorry for inconvenience caused. We
are unable to reproduce the issue. We have prepared a simple sample,
demonstrating the working of “ Binding data table to Syncfusion grid” and the same can
be downloaded from the following link below.
Could you please try the sample and get back to us whether you are able to reproduce the issue? If not, could you please give more information or by reproducing the issue in the above sample so that we could sort out the issue and provide you with solution. The information provided would be of great help in resolving the issue.
Please let us know if you have any concerns.
Regards,
Rakesh D
Thanks for using Syncfusion Products.
Query 1: To edit the datatable in the grid.
We have noticed that you have used “ edit.PrimaryKey(key
=> key.Add(p => p.Table.PrimaryKey)); “ in your view page to
specify the Primary Key property for grid. We suggest you to use the below code
snippet for setting primary key.
[view]
.Editing(edit =>{
edit.PrimaryKey(new string[]{"ObjectId"});
})
For your convenience we have your modified your codes
and created a sample for performing editing, deleting, adding operations in
grid using datatable binding. Please try the below sample and let us know if
you have any concerns.
Rakesh
D
Hi German,
Thanks for using Syncfusion Products.
Query 1: To edit the datatable in the
grid.
We suggest you to use the below code
snippet for setting primary key.
[view]
.Editing(edit =>{
edit.PrimaryKey(new string[]{"ObjectId"});
})
Query 2: To set Column caption or HeaderText.
To set column caption or HeaderText we suggest you to use
HeaderText property of column. Please refer below code snippet for further
details.
.Column(col =>{col.Add("ObjectId").HeaderText("OBJECT ID");})
For your convenience we have your
modified your codes and created a sample for performing editing, deleting,
adding operations in grid using datatable binding. Please try the below sample
and let us know if you have any concerns.
Rakesh D
Hi Pramod,
We considered this “Editing support for dynamic data binding” as a feature request and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Kavitha N.