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="<br>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