Row validation - AspxGridView and SF BO


Author
Message
Chan
Chan
Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)Advanced StrataFrame User (965 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
Hi,

May I know how do you implement row validation using DevEx AspxGridView and SF BO?

While user click on "Update" button at AspxGridView, Row_Validating fired. However, at this point data bot yet send back to SF BO.



Please advice. Thank you
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
I don't have the devex controls loaded on this machine, so I can't test it on that particular grid, but you should be handling the validation at the BO level rather than in an event within the grid.

I've attatched a version of the Business Binding Source sample that has been updated to work with VS 2008. Run the sample, delete the first or last name of any row, then try to save. You'll see that the BO will handle the validation and show the error provider in the appropriate position.

Attachments
BusinessBindingSourceSample.zip (213 views, 774.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search