Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please make the gridview codes below scrollable.

I have inserted
ScrollBars="Both"
but its not working





XML
<tr>
           <td class="style32" colspan="8">
               <div style="height: 80px; text-align: left;" align="center">
                   <asp:GridView ID="GridView1" runat="server" ScrollBars="Both" Font-Size="XX-Small"
                       onselectedindexchanged="GridView1_SelectedIndexChanged" BackColor="White"
                       PageSize="5">
                       <Columns>
                           <asp:CommandField ShowSelectButton="True" />
                       </Columns>
                   </asp:GridView>
               </div>
           </td>
       </tr>
Posted
Updated 22-Jun-14 7:39am
v3
Comments
CHill60 22-Jun-14 14:11pm    
What do you mean by "its not working"??
VICK 23-Jun-14 0:48am    
You can use the overflow property and set it to true.
further set a specific height of the grid view. so that overflow property could come in action.

1 solution

Please check
Gridview Fixed Headers

I think this can solve your problem.
 
Share this answer
 
v2

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