vb.net - DataGridView CellValidated Event When Formatted Value is Nothing -
i have datagridview in winform , can change cells's value. save new cell's value cellvalidated event formattedvalue. works when change cell empty, formattedvalue empty too.
this code :
try if isdbnull(e.gridcell.formattedvalue) = false if e.gridcell.formattedvalue.trim <> "" executesql("update ...") else executesql("delete ...") end if end if catch ex exception ... end try
Comments
Post a Comment