I have a DataGridView and I am Validating a column, in this case it's a zipCode column.
I have a procedure that verifies the zipCode and adds the 4 digit extension, the problem I am having is changing the value of the zip Code column while it's being validated, If I use:
dgv.currentRow.Cells("ZipCode").value = newZipValue
the new value doesn't get accepted. e.formattedValue holds the current value but it's readOnly so I can't change the value there either.
I could easily do this using CellValueChanged but I don't want the user to be able to leave the cell if the zipCode is not valid.
Any Suggestions?
Thanks
Perrin
I have a procedure that verifies the zipCode and adds the 4 digit extension, the problem I am having is changing the value of the zip Code column while it's being validated, If I use:
dgv.currentRow.Cells("ZipCode").value = newZipValue
the new value doesn't get accepted. e.formattedValue holds the current value but it's readOnly so I can't change the value there either.
I could easily do this using CellValueChanged but I don't want the user to be able to leave the cell if the zipCode is not valid.
Any Suggestions?
Thanks
Perrin