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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -