如何使用GridView的行高调整链接按钮的高度 [英] how to adjust height of link button with row height of gridview
本文介绍了如何使用GridView的行高调整链接按钮的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
how to adjust height of linkbutton in grid with row height of gridview
here is my aspx page
<asp:GridView ID="GridView1" runat="server" Width="100%" AutoGenerateColumns="False">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" Width="5%" />
<asp:Label ID="Label1" runat="server" Text="Subject"></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="CheckBox2" runat="server" Width="5%" />
<asp:LinkButton ID="LinkButton1" Text='<%#Eval("md_emplyedetail") %>' runat="server" Width="70%">LinkButton</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
many thanks
推荐答案
您必须在后面的代码中处理此问题
you have to handle this in code behind
这篇关于如何使用GridView的行高调整链接按钮的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文