TelerikDeveloper.com

TelerikDeveloper.com

sgray128 8/22/2015 6:09:47 PM

ASP.NET Edit the size of a GRIDBOUNDCOLUMN textbox in edit mode

This article shows how to edit the size of a GRIDBOUNDCOLUMN text box in edit mode (in place editing)



 

 

<telerik:GridBoundColumn DataField="Link" ColumnEditorID="LinkEditor" UniqueName="link" HeaderText="Help!"  ></telerik:GridBoundColumn>

 

Private Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
    If TypeOf (e.Item) Is GridEditFormItem And e.Item.IsInEditMode Then
        Dim editItem As GridEditFormItem = e.Item
        Dim txtLink As TextBox = editItem("link").Controls(0)
        txtLink.Height = Unit.Pixel(40)
        txtLink.TextMode = TextBoxMode.MultiLine
    End If
 
 
End Sub