In order to validate GridViewRow
while editing GridViewCell
I can suggest you implementing INotifyDataErrorInfo
interface in your business object and validate the data on property level. You will need to also set the UpdateSourceTrigger
property of the input element to "PropertyChanged
As for your requirement the validation to be performed before the DataBinding
. I am afraid that this would not be possible with RadGridView
since the RowValidating
event is being fired when the cell leaves edit mode.
Please find attached a sample project illustrating how the approach using INotifyDataErrorInfo
can be implemented.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.