我们如何在gridview的EmptyDataText中给空格 [英] How can we Give Spaces in EmptyDataText of gridview
本文介绍了我们如何在gridview的EmptyDataText中给空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在gridview的EmptyDataText中给空格(开始时)
如果没有数据,我想在Gridview中显示文本
未找到记录"
How can we give spaces in EmptyDataText of gridview(In starting)
I want to Show text in Gridview Like this if no data present
" No Record Found"
推荐答案
答案在C#中,请在实现前在VB.NET中进行转换.
grdView.EmptyDataText =& nbsp;" +未找到记录";
grdView.DataBind();
如果这对您有所帮助,请投票并接受作为答案. :rose:
Answer is in C# and please convert in VB.NET before implementation.
grdView.EmptyDataText = " "+"No Records Found";
grdView.DataBind();
If this helped you then please Vote and accept as Answer. :rose:
使用<emptydatatemplate>
解决问题
请参见此处 [
use<emptydatatemplate>
for accomplishing your problem
See HERE[^] for more details.
Please vote and Accept Answer if it Helped.
这篇关于我们如何在gridview的EmptyDataText中给空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文