当sql数据源没有提取数据时,不显示GridView [英] GridView is not displaying when there is no data fetched by sql data source

查看:86
本文介绍了当sql数据源没有提取数据时,不显示GridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用sql数据源来获取网格视图的数据。我已经通过添加页脚模板在gridview中实现了插入功能。但问题是当没有数据或所有行都被删除时,当我尝试使用页脚模板插入新行给出错误。



请建议做什么....

I am using a sql data source to fetch the data for my grid view.I have implemented insert functionality in the gridview by adding footer template.But the issue is when there is no data or all the rows are deleted,when i try to insert new row by using footer template its giving error.

please suggest what to do....

推荐答案

看到类似的答案:

Datagridview不显示 [ ^ ]

如果gridview为空,则错误消息 [ ^ ]

如何在Asp.Net中显示空Gridview [ ^ ]



请下次使用 SearchBox [ ^ ];)
See similar answers:
Datagridview not display[^]
error message if gridview is empty[^]
How to Show Empty Gridview in Asp.Net[^]

Please, next time use SearchBox[^] ;)


这篇关于当sql数据源没有提取数据时,不显示GridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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