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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -