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
I have a grid manually bound to a DataSet and am handling the DeleteRow event with custom code.
I noticed the grid does not automatically set the underlying DataRow object to the Deleted state.The row currently has the RowState of Unchanged.I need to call the DataRow.Delete method on this row so that my data adapter can see that the row was deleted properly.
However, during the DeleteRow process I call the AcceptChanges method so that the DataSet is committed properly. This makes the row Detached.
Immediately after leaving the DeleteRow event, the WebGrid throws an internal error "Cannot perform an operation on a row not in the table".
What is the proper order/methods to call to properly delete a DataRow in the underlying data source and have it delete the WebGridRow without error in the grid. The above methods used to work in WebGrid 3.5 but now doesn't in WebGrid 7.
Thanks,
Mike
void WebGrid1_DeleteRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e){ DataSet ds = (DataSet)WebGrid1.DataSource; ((DataRowView)e.Row.DataRow).Row.Delete(); da.Update(ds); e.ReturnValue = false;}
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