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. Image for the cookie policy date

How to update the Database while performing CRUD Operation?


How to update the Database while performing CRUD Operation?????

I've this GridGroupingControl (red marked) binding to List Of a Entity. I need update database from that grid, I mean... insert, update and delete. How I can do that?




3 Replies

AR Amal Raj U Syncfusion Team February 17, 2016 02:52 PM UTC

Hi Oscar,

Thank you for contacting  Syncfusion Support.


Query
Suggestions
Insert , update, delete the records in the grid
We already have dashboard explaining how to add and delete records in both GridGroupingControl and the datasource. Please refer the sample from the below location.

<Installed Location>\Syncfusion\EssentialStudio\<Installed Version>\Windows\Grid.Grouping.Windows\Samples\Data Sources\IBindingList Demo\CS


Please let us know, If you need further clarification.

Regards,
Amal Raj U.


OD Oscar Daniel Vega Castaneda February 18, 2016 07:48 PM UTC

Amal,

Thank you for your quickly answer, but, that isn't I need.

I've a GridGroupingControl and I need use the AddNewRow section  (GGC.TableDescriptor.AllowNew = true) to add a new record and update my Entity and so update my database.

Can you understand me?



PK Pavithra Kodiyarasan Syncfusion Team February 19, 2016 12:49 PM UTC

Hi Oscar,

Thanks for your update.

You can directly add the record by using AddNewRecord Section. You can set this section before the details or after the details. You can enable the AddNewRecord Section by using following code.

this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = true;


Please refer the following sample for Add,update,delete records in database.

http://www.syncfusion.com/downloads/support/forum/122090/ze/WindowsFormsApplication1697376665



Regards,

Pavithra K.


Loader.
Up arrow icon