Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing In Grid
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00898319
Message ID:
00898391
Vues:
19
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform