Datagridview rowvalidating example

However, I would still like to investigate the issue further.

To do that, I need a sample project, which demonstrates the issue.

Hi all, I am having a problem with inserting rows in to my datagridview control.

The underlying bindingsource (and associated currency manager and dataset) have all been updated so I have managed to work around the problem using the following: void Validate Row(object sender, Data Grid View Cell Cancel Event Args e) { Data Grid View tmp DGV = ((Data Grid View)sender); if (Now when the validaterow event fires the first time around the row will be validate, the second time the row validating event fires (when the datagridview contains and invalid index and hence causes an index out of range exception) the handler will not attempt to access the current (now non existent in the datagridview since it does not satisfy the filter criteria) row and the exception does not occur.How do you get the Rad Grid View to do Row Validating only when the focus is about to go to another row?Thanks, Rob Hello Rob, Basically, the Row Validating event will be fired on committing the editing when you are trying to go to another row.Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items Hi Maya, Sorry for the delayed response. :( My employer would like to have a row validation checked only when they leave the row.However, I realised that because they also were starting from the left most column and typing some data then hitting the Enter key to move to the next column of the same row it was causing strange behaviour.

Leave a Reply