在运行阶段显示空gridview [英] empty gridview display in the run stage

查看:95
本文介绍了在运行阶段显示空gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,







我想在运行阶段显示空gridview意味着我们插入并在gridview中写入记录,如果单击插入按钮,则保存在数据库中,如果单击添加按钮,则添加gridview行。





请对我非常紧急,请帮助我

解决方案

您好Ashwini,



根据我的理解,我假设您想要在没有要绑定的数据时显示空gridview,但可以在运行时添加数据。如果是这样,那么请使用它。



< asp:GridView>

< EmptyDataTemplate> ITemplate< / EmptyDataTemplate>

< / asp:GridView>



请通过以下MSDN链接了解更多详情



http://msdn.microsoft.com/ en-us / library / system.web.ui.webcontrols.gridview.emptydatatemplate.aspx [ ^ ]



如果有帮助,请告诉我。你或不。$



谢谢,

Vamsi。


dear,



I want to show empty gridview means in run stage we are insert and write record in the gridview and if you click on the insert button then save in database and if you click to the add button then add gridview row.


please its very urgent to me,plz help me

解决方案

Hi Ashwini,

As per my understanding, I assume that you want to show empty gridview when there is no data to be binded, but can add data on the run. If so, then please use this.

<asp:GridView>
<EmptyDataTemplate>ITemplate</EmptyDataTemplate>
</asp:GridView>

Please go through the below MSDN link for more details

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatemplate.aspx[^]

Let me know if this has helped you or not.!

Thank you,
Vamsi.


这篇关于在运行阶段显示空gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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