Hi Valentin,
In the ItemDataBound method you can dynamically set the CSS for the textbox or you could just set the styles directly.
Private Sub DataGrid1_ItemDataBound(...) Handles DataGrid1.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim mybutton As LinkButton
mytextbox = e.Item.FindControl("TextBox1")
mytextbox.CssClass = "mystyle"
End If
End Sub
>Hello everybody!
>Sorry, I am new in .NET but eager to learn, and having problems to access an edit control in my grid.
>
>I am using Edit/Update/Cancel type of column. It works fine, so far. But I want to change property of this TextBox Control which was offered to me by ASP.NET, lets say apply my textbox cascading style to it.
>
>Please help me here.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi