在编辑模式下控制aps.net中gridview的宽度 [英] Control the width of the gridview in aps.net during edit mode

查看:71
本文介绍了在编辑模式下控制aps.net中gridview的宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ASP.NET中控制gridview的宽度,当我单击gridview的编辑按钮时,它的宽度增加,我该如何控制它。

How can i control the width of the gridview in ASP.NET, when i click edit button of the gridview, it''s width increases, how can i control that.

推荐答案

<asp:GridView ID="gvCustom" runat="server">
    <Columns>
        <asp:BoundField DataField="EmpID" HeaderText="EmployeeID" >
            <ControlStyle Width="150" />
        </asp:BoundField>
    </Columns>
</asp:GridView>









试试这个..





Try this..


这篇关于在编辑模式下控制aps.net中gridview的宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆