Validate datagridview column
how can we validate numeric values in datagridview column?or can we show a default value (say 0) in a column of datagridview? Need help in this matter .
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Rodick Wu118 reputationPosted May 25, 2009, 9:28 PM EDT
meli19 reputationPosted May 26, 2009, 2:31 PM EDT
Do you mean you want to make sure that it's 0 (zero) not o (letter o)?
If that the case, you can try to convert it to int using:
Convert.ToInt32(row.cell[1].ToString())
It will fail if the value is other than digit.