如何在datagrid视图中删除包含主键null值的行 [英] how to delete rows contains primary key null value in datagrid view

查看:122
本文介绍了如何在datagrid视图中删除包含主键null值的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式删除datagridview中包含主键null值的那些行

很抱歉,如果这个问题使任何人困惑.我的意思是在我的代码中说,如果有人将某行留为空白或为null,则应在更新时删除包含null的行.这使进一步的错误处理变得容易. 此处


how to programmaticaly delete those rows which contains primary keys null values in datagridview

sorry if the question confused anybody. I meant to say in my code if somebody leave a row blank or null it should delete the row which contain null while updating. this eases further error handling.

解决方案

Have a look at my articles, admittedly C++/CLI, I have an error handler which forces the user to input values to certain cells here


这篇关于如何在datagrid视图中删除包含主键null值的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆