Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys
I have a gridview for editing the items inside it, but when I press the Edit butoon the gridview width increases and right strip of t he gridview cannot be seen because it is outside the div
any solution?
Posted

Hi,

fix all edit item width:

ASP.NET
<asp:templatefield headertext="Category Name" xmlns:asp="#unknown"><itemtemplate><![CDATA[<%#Eval("CATEGORY_NAME")%>]]></itemtemplate>
            <edititemtemplate>
                <asp:textbox id="txtCatName" width="100px" runat="server" text="<%#Bind("CATEGORY_NAME") %>"></asp:textbox></edititemtemplate>
            </asp:templatefield>


fix command field width:

ASP.NET
<asp:commandfield showeditbutton="True" headerstyle-width="100px" xmlns:asp="#unknown" />
 
Share this answer
 
in template field of columns you can specify--->
ControlStyle-Width='size'
 
Share this answer
 
Try to put relative co ordinates, instead of absolute.
 
Share this answer
 

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