iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
i have code in the deleterow event to persist the changes back to the database.
althrough the row is removed from the grid the changes are not getting back to the database.
On investigation is appear that the rowstate property of the data row has not been changed.
i.e rowstate = no change where is should be marked as deleted.
(therefore not removed from the database)
if performing an edit the editrow event is firing and the rowstate is marked as changed.
and works as expected. the database is updated.
why is the rowstate not being marked up in the delete row event?
Am i looking at the wrong event.
Note this worked fine in webgrid 3.5.
can you direct me in the right direction if i'm looking in the wrong place.
thanks
Peter
Hi Peter,
If you don't use the datasource control, you need to handle the add, update and delete on your own. Here's I give you a sample.
Hope it helps.
Regards,
Lili Khiung
From the WebGrid 3.5 to the latest WebGrid version, there are many breaking changes. In WebGrid 7, the binding process is automatic through the datasource control and the delete event is automatically handled by the datasource to the database. I suggest you to update to the latest version and see our AllowDeleting sample.
Surely you do not need to used the datasource control.
All your samples are hard coded datasource controls coded in the aspx page so not very helpful for my situation.
Fortunately with some digging i found out somebody else had the same issue and this solution seems to work.
http://www.intersoftpt.com/Community/WebGrid/Error-after-DeleteRow-event---Cannot-perform-this-operation-on-a-row-not-in-a-table/
I still think is is odd that the rowstate for the data row is updated when the updateRow event is fired but not when the DeleteRow event is fired.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname