dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: grid view changing sizes in edit mode

  1. #1
    Join Date
    Feb 2010
    Posts
    17

    grid view changing sizes in edit mode

    when a user enters edit mode of my gridview, the girdview becomes huge. How can I make it so my gridview stays relatively close to the size it is when it is not in gridview?

  2. #2
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Re: grid view changing sizes in edit mode

    You can modify the width/height on the controls, within the "<EditItemTemplate>" tags, via the Width and Height Parameters.

    e.g.

    Code:
    <EditItemTemplate>
         <asp:TextBox Width="2px" ID="TextBox4" runat="server" Text='<%# Bind("Message") %>'></asp:TextBox>
    </EditItemTemplate>
    HTH,
    Quinn

    If this helps, please rate up!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)