Advertisement

05.08.2008 at 11:32AM PDT, ID: 23387155
[x]
Attachment Details

scrollbars in control within GridView

Asked by wsturdev in Programming for ASP.NET

Tags: GridView, vertical scroll bar

I have the following templatefield within a GridView.  IT displays a variable amount of text.  Currently, when the amount of text exceeds what can be shown within the normal height of the rows, the Gridview row height for that row expands to fit the text.  This in turn forces a vertical scrollbar to appear on the right edge of the Gridview, and if I scroll, either the Header row or the pager row disappears.

How can I force the templatefield to stay at the designated height and have a vertical scrollbar appear when there is to much data?

       <asp:TemplateField SortExpression="KT_Step" HeaderText="&lt;br&gt;KT Task" ItemStyle-Wrap=true>
            <ItemTemplate>
                <asp:Label ID="KT_Step" runat="server" Text='<%# Bind("KT_Step")%>' Width="450px" ></asp:Label>
            </ItemTemplate>
            <ItemStyle Width="460px" />
           <HeaderStyle Font-Bold="False" Font-Names="arial" Font-Size="8pt" ForeColor="White"
               Height="30px" HorizontalAlign="Left" VerticalAlign="Bottom" />
        </asp:TemplateField>
Start Free Trial
 
Loading Advertisement...
 
[+][-]05.08.2008 at 11:57AM PDT, ID: 21527452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 12:17PM PDT, ID: 21527614

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Programming for ASP.NET
Tags: GridView, vertical scroll bar
Sign Up Now!
Solution Provided By: sajain84
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.08.2008 at 01:08PM PDT, ID: 21528025

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906