Declined
Last Updated: 10 Jul 2018 17:06 by john
john
Created on: 09 Jul 2018 22:14
Category: GridView
Type: Feature Request
0
radgridview insert update delete
how can i insert , update or delete? i tried after choosing the data source , it shows the data correctly but when i edit or add a new item the database is not affected (allow edit,delete and add row are set to true)
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
john
Posted on: 10 Jul 2018 17:06
i found a way to do what i asked with sql data adapter
thanks anyway
ADMIN
Hristo
Posted on: 10 Jul 2018 16:17
Hi John,

RadGridView will not update the database and this behavior is by design. Once you edit a record in the control, the grid will update the data bound object. From that moment it is up to you, depending on your actual scenario and chosen data provider to connect to the database and update it. You can check the following documentation articles providing examples with EntityFramework and ADO.NET:
   https://docs.telerik.com/devtools/winforms/gridview/populating-with-data/binding-to-entityframework-using-database-first-approach
   https://docs.telerik.com/devtools/winforms/gridview/populating-with-data/updating-the-database-with-ado.net

I hope this will help.

Regards