CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2001
    Location
    UK
    Posts
    308

    DataGrid - Editing a TextBox and its Size

    Hi,

    i'm using the datagrid to display the content from the DB.
    the datagrid also has "Edit" and "Delete" option.

    While selecting the "Edit" option, a textbox is displayed, of default length, due to which my screen design is distrubed.

    I want to control the size of this text box..
    I wanted a textbox width which can hold 2 char in it.


    how to do it.

    thanks in adv.

    Venu
    Venu Bharadwaj
    "Dream it. U can do it!"

  2. #2
    Add a width definition to your textbox declaration.

    <asp:textbox id="Textbox1" runat="Server" width="10" />

    10 might not be exactly the right width. You might want to play with that.

  3. #3
    Join Date
    Nov 2005
    Posts
    2

    Re: DataGrid - Editing a TextBox and its Size

    hi,

    In edit item template of you template column you can change the properties of your textbox which will be displayed in edit mode.


    lucky

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured