Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Force DataGridView RowValidated to fire
I'd like to find out how to programmatically get the RowValidated or RowValidating events to fire on a datagridview. For a dynamic grid, the cell value won't get pushed/refreshed on the application I'm writing until the user manually changes cells or rows. It would be nice to force all of the pertinent validation methods to fire.
For now, the only solution I've found is to set the focus off the DataGridView to a control such as a tabControl or label that accepts focus. Some, like the toolstrip or main form, don't work.

Created By: amos 4/3/2006 7:49:16 PM
Updated: 2/24/2015 10:33:45 AM


 Comments:
 > Guest 7/31/2008 7:00:14 PM
I found that Form.ValidateChildren() will force RowValidating on grids within the form. --kaborka