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:
Public Sub DataGrid_Edit(ByVal Source As Object, ByVal E As DataGridCommandEventArgs)
dgBeach.EditItemIndex = E.Item.ItemIndex
BindData()
E.Item.Cells(3).Width = System.Web.UI.WebControls.Unit.Pixel(25)
End Sub
I also tried with the pixel code in different spots but no difference can be seen.
Any ideas?
:confused: