网格中消息异常的代码 [英] code for message exception in grid

查看:48
本文介绍了网格中消息异常的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


网格视图以使用id
显示记录da 如果id 25有3行...
我通过单击按钮删除了所有3行....
如果id 25中没有记录..
我输入ID 25表示它显示消息;没有norecord可用
我想要此消息异常的代码

Hi,
grid view to display the records da using id
if the id 25 have 3 rows ...
i deleted all 3 rows by using button click ....
if no records in id 25 ..
i enter the id 25 means it show the message ;there is no norecord avail
i want the code for this message exception

推荐答案

您好,

在绑定到源之前,请检查内容(datatable/datarow/DataReader使用的内容)的行数.如果count大于零,则仅绑定,否则您可以显示该消息.

谢谢
sanjeev
Hello,

check the content (datatable/datarow/DataReader whatever you have used) for row count before binding to source. if count is greater than zero then only bind else you can show the message.

Thanks
sanjeev


这篇关于网格中消息异常的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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