Datagridview cell validating Chat cam2 sex
But my problem is I don't want this row Validating Event to happen when I click another datagridview (or other control), I Just want this event to "Fire" on a selected control.
I guess for now the problem is that this event fires when the datagridview looses its focus.
Also this approach allows the user more flexibility.
Lets say the user its not required to enter data in all the rows of the datagridview, the latter approach would work just fine.
In this case, you need to add a Combo Box to the cells in the desired column.
The following code snippet adds a Combo Box control to the fifth column of the Data Grid View control: '---add columns to the Data Grid View control--- Data Grid View1.
The Kettic Data Grid View allows users of the control easily validate data grid cells when data is committed to the data source.
Now if a row is on edit mode, I must prevent users from leaving the current row.Upon clicking save button, I have to check if there are any conflicts and if there are I display those in another datagridview. This applies to both the Validating event and the Row Validating event. Meyers-Jouan" id="ctl00_m_m_i_ctl00_gr_ctl03_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="4411186" / I've tried using a messagebox to know if the user wants to leave the edit mode..