Click here to Skip to main content
15,991,109 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
-- 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
Posted

set gridview width=100%


Scrollable GridView[^]
 
Share this answer
 
v2
Comments
anurag19289 9-Jul-13 9:10am    
its already there... but still its causing the same problem
Nirav Prabtani 9-Jul-13 9:14am    
have you use paging in grid???
Teenustar 9-Jul-13 17:44pm    
Make the column width fixed in pixels.
put your Grid inside Div

like


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

</div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900