gridview根据屏幕大小进行调整 [英] gridview adjust as per the screen size

查看:127
本文介绍了gridview根据屏幕大小进行调整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

- 我的页面中有一些文本框

- 特定记录的搜索按钮... gridview显示如下结果

- gridview适合根据屏幕尺寸





--------------怀疑------ ----------------



如果我把它翻了999页并搜索所有细节

- 网格视图显示但它穿过屏幕大小



- 我必须向右滚动才能查看整个列



- 我希望网格符合我的屏幕尺寸



请帮助

-- I have some text boxes in my page
-- search button for a particular record...the gridview displays below with result
-- gridview fits as per the screen size


-------------- doubt----------------------

if i make it 999 pages and search all the details
--gridview displays but it crosses the screensize

-- i have to scroll right to view the entire columns

--i want the grid should fit as per my screensize

please help

推荐答案

设置gridview width = 100%





可滚动的GridView [ ^ ]
set gridview width=100%


Scrollable GridView[^]


把你的Gri d里面的Div



喜欢



put your Grid inside Div

like




<asp:GridView ID="GridView4"  <pre lang="xml">Width="100%" runat=&quot;server&quot;&gt;
                &lt;/asp:GridView&gt;</pre>

</div>


这篇关于gridview根据屏幕大小进行调整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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