Datagridview problem.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagridview I call the CellValidating event and if the the cell
does not validate I want to reset the cell to a default value. My code
actually executes this statement:

datagridview1.CurrentRow.Cells[Columnx].Value = defaultValue;

but the statement does not change the cell at all.
 
I suppose you have binded your datagridview1 to some Dataset... [or
list,or..]
In this case, I think you have to change the value int the dataset [or
list,or..]

Steph.
 
Back
Top