Null值未在gridview中显示 [英] Null values doesn't shows in gridview
本文介绍了Null值未在gridview中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi ..
我正在用图像显示在gridview中的值..我想使用c#代码将值设置为null时,图像不会显示在gridview中.没有null值,则图像可以支付..我该怎么办..请帮助我..
在此先感谢...
解决方案
在将结果集从数据库绑定到gridview之前,请检查所获取的值是否不为null,然后进行绑定...
hi..
i am showing values in gridview with images.. i want c# code for when the value should be null the image doesn''t shown in gridview. have not null value then it the image can be dispays.. what can i do.. please help me..
thanks in advance...解决方案Before binding ur reultset from database to gridview jus check if the retrieved value is not null and then bind...
这篇关于Null值未在gridview中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文