GridView不可见 [英] GridView can not be visible

查看:110
本文介绍了GridView不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人
在使用ASP.NET时,我创建了一个过程来检索数据表,并将gridview数据源属性设置为等于该数据表.
数据表中有数据,但是当我将网格的数据源设置为等于我的数据表并绑定数据时,什么也没有发生,并且网格视图仍然处于隐藏状态.
我检查了visible属性,这是真的.

dear all
am using ASP.NET, I created a procedure to retrieve a data table and set the gridview data source property to be equal that data table.
the data table has data, but when I set the data source of the grid to be equal my data table and bind data, nothing happens, and the grid view is still hidden.
I checked the visible property, it is true.

grdPageContents.DataSource = MyDataTable
grdPageContents.DataBind()





can you help me please?

推荐答案

请检查可见性模式,我的意思是你可能写了一段隐藏网格的代码,

请在您的代码后添加一个代码以显示网格;

Please check the visibility mode, i mean u may be written a code for hides the grid some where of the code ,

Please add a code to visible the grid after ur code;

grdPageContents.DataSource = MyDataTable
grdPageContents.DataBind()
grdPageContents.Visibe = True;




干杯...




Cheers...


这篇关于GridView不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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