i do this in code if you need to do it dynamicly. Try this, i have not tested
this, but it should work. Please let me know.
use the rowediting event to find the text box and then set the width.
Protected Sub GridView1_RowEditing(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.GridViewEditEventArgs) Handles GridView1.RowEditing
Dim tb As TextBox =
Me.GridView1.Rows(Me.GridView1.SelectedIndex).Cell s(3).FindControl("mytextbox")
tb.Width = 75
End Sub
you need to know the cell number and the name of the text box where your
template field is.
Try this
--
Share The Knowledge. I need all the help I can get and so do you!
"Jon Paal" wrote:
how to set the width of BoundField textbox when it is displayed in edit mode ?