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 upgraded from intersoft WebUI studio.net 2008 R2 to intersoft WebUI studio 2009 R2 and delete in webgrid is not working now even though edit and add are working. DataRow state after getting changes on data source of webgrid, shows deleted row also as "Added". I have attached a sample page showing this issue. You will have to debug it on you side to see what is the rowstate of deleted row since i didn't put code for save in back. Version information before and after upgrade is also attached.
Suggestions are welcome.
Sukhdeep
Hello Sukhdeep,
Thank you for your sample. It's true that we have changed the delete behaviour when using a cache or session. Therefore, you will need to use additional code. Please try to use below code in DeleteRow server side event. I already tested it and worked fine in here.
protected void grdTest_DeleteRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { DataRowView drv = e.Row.DataRow as DataRowView; DataRow dr = drv.Row; dr.Delete(); e.ReturnValue = false; }
Regards,Handy
Hi Sukhdeep,
I don't see any attachment in here. I need your sample to investigate the issue. Currently, our livesample is running well for delete scenario. So, I think maybe something in your scenario that we need to replicate the issue. Also, please ensure you have defined DataKeyField in your roottable. Some delete issue could be occurred because of this.
Ohh m so sorry abt that mistake. And yes i do have a datakeyfield set in webgrid. Let me know if you need anything else from my side.
Thanks a lot Handy. Code you provided solved my issue.
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