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

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -