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
Just found a strange behaviour of the WebGrid when requesting rowchanges on postback. All added and deleted rowchanges show up in the list of changes. However, the unmodified changes (which obviously isn't a change, but it's possible to request those changes) won't show up in the list.
Am I doing something wrong, am I interpreting it wrong or is there another reason it doesn't work?
WebGrid grid = (WebGrid) this.MessageFormView.FindControl("WebGrid1", true); List<WebGridRowChanges> list = grid.GetChanges(RowState.Added | RowState.Deleted | RowState.Unmodified);
Thanks for replies.
GetChanges(RowState rowState) method returns all pending changes with given row state. The RowState enumeration includes the following values: Added, Modified, and Deleted.
Unmodified is used as the default value of WebGrid RowState, but RowState.Unmodified will not available in GetChanges() method since RowState enumeration in GetChanges method only list down rows that being added, edited, and/or deleted.
Hope this helps.
Logical and of course I agree. But I found it somewhat strange, because the possibility is given to request unmodified rows.
Thanks for the clarification though.
Glad to hear the good news.
I have informed your valuable feedback to WebGrid development team.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
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