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.

inline edit add new row ObservableCollection

Thread ID:

Created:

Updated:

Platform:

Replies:

106959 Feb 4,2013 06:12 PM May 14,2013 02:41 AM WPF 3
loading
Tags: GridControl
steve mangelschots
Asked On February 4, 2013 06:12 PM

Hi

I want to use a grid like in your demo Observable Collection databinding Demo but instead of using buttons to add new items I want to use inline editing do I need to do something to get this working.

My problem now is I get 1 empty row but wen I edit it no empty row gets added is this normal behaviour?

Is there a ObservableCollection demo with inline Crud behaviour so without the add, edit and delete button?


Thangapriya V [Syncfusion]
Replied On February 7, 2013 07:20 AM

Hi Steve,

 

We have analyzed your query. We have achieved your requirement at sample level. And we have attached the sample below.

 

Please refer the following link for further details.

http://help.syncfusion.com/ug/wpf/grid/default.htm#!documents/tableoptions.htm

 

Please let us know if you have any concerns.

 

Regards,

Thangapriya



Observable collection Add Edit Delete_b2e70aae.zip

Paul McCranie
Replied On March 21, 2013 03:37 PM

In your example, yes, you can Add a new row, but that record isn't being stored. It's lost whenever you close the grid.

Which is the same behavior I'm getting. It adds it to the grid temporarily, but it doesn't actually persist back to the data store.

How do you get it to persist?

Paul

Divya A [Syncfusion]
Replied On May 14, 2013 02:41 AM

 

Hi Paul,

 

Sorry for the delay caused.

 

Whenever you edit, add or delete a record in the GridDataControl, the values will be changed only in ItemsSource of the Grid. It will  not reflect the changes to DataBase. You can use any of your approach to Commit the changes back to the DataBase or using update() method of DataAdapter. So that the changes would persist permanently.

 

Regards,

Divya.


CONFIRMATION

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.

;