Results 1 to 4 of 4

Thread: Datagrid textbox width (edit mode)***resolved****

Threaded View

  1. #1

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    Datagrid textbox width (edit mode)***resolved****

    I have a datagrid that has Edit, Update,Cancel capability (the custom column). What I need is to specify the width of the textbox when I choose edit. As it stands the grid triples in size because of the size of the input fields. I tried the following code
    VB Code:
    1. Public Sub DataGrid_Edit(ByVal Source As Object, ByVal E As DataGridCommandEventArgs)
    2. dgBeach.EditItemIndex = E.Item.ItemIndex
    3. BindData()
    4. E.Item.Cells(3).Width = System.Web.UI.WebControls.Unit.Pixel(25)
    5. End Sub

    I also tried with the pixel code in different spots but no difference can be seen.
    Any ideas?
    Last edited by Halon; Nov 26th, 2002 at 06:08 PM.
    Soylent Green tastes like chicken

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