System notsupportedexception updating is not supported by data source
Post ID=270 What you can do is handle the Grid View's Row Updating event, manually update the XML data in the Xml Data Source by calling Get Xml Document(), call the Save() method, I did exactly that and finally cancel the Row Updating event (so that the Grid View doesn't try to make the data source do an automatiac update).
Description: An unhandled exception occurred during the execution of the current web request. Execute Update(IDictionary keys, IDictionary values, IDictionary old Values) 1265215 System.
NET web application in VB such that I won't get this error anymore?
I'm trying to edit an entry and then click "update" to update the entry on my website but then this error shows up. I have the following configured datasourced datatable on my web application: The Sql Data Source object has no way of knowing the precise way to update the table(s) of your application unless you specify an section within the properties of the Sql Data Source.
Moreover if possible I would like to know how to bind my Data Grid in View and also refresh it asynchronously if any better way is there.
Since your Observable Collection is created on UI thread, you can only modify it from UI thread and not from other threads. If you ever need to update objects created on UI thread from different thread, simply If I'm not mistaken, in WPF 4.5, you should be able to do this without any problem.
in the gridview i have few textbox, dropdownlist and one usercontrol when the user click on EDIT ( i have button called EDIT) then user able to modify the data and when the user hit UPDATE (i have update button) then i want to execute the code and rebind to gridview when i first display the gridivew i'm retriving the data from object called People make sense?
I have an example on my blog where I use the Xml Data Source to update the XML document; it can probably give you some idea: Or you could put the responsability to your service/viewmodel/whatever and simply enable Collection Synchronization.This way if you make a call you don't have to worry on which thread you are on and on which one you make the call.I notice that the error happen even if there is noting in the event handler. Thanks, Eilon If you use an Xml Data Source control and added an Update command button to update the Row, you will get the Not Supported exception because the Grid View will call the Update method of the Xml Data Source's Xml Data Source View. Do I maybe need to also handle the Row Updating event as well? "cancel the Row Update by setting the event argument's Cancel property to true". Protected Sub gv1_Row Updating(By Val sender As Object, By Val e As System. What you can do is handle the Grid View's Row Updating event, manually update the XML data in the Xml Data Source by calling Get Xml Document(), call the Save() method, and finally cancel the Row Updating event (so that the Grid View doesn't try to make the data source do an automatiac update). I tried your blog but still not able to get this working. How would I know which node corresponds to the selected row in the grid.