Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button control text
Message
From
02/03/2004 17:52:17
 
General information
Forum:
ASP.NET
Category:
WebForms
Miscellaneous
Thread ID:
00882451
Message ID:
00882536
Views:
20
Chris,

I'm using VB but not a problem translating. but I am having one issue


Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound
If DropDownList1.SelectedItem.Text = "Attatchment's" Then
If e.Item.ItemType = ListItemType.Item Or _
e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.Cells(2).Text = "My Text"
End If
End If
End Sub

Problem is there is a button in column 3 when this code fires it changes the button to a field with the text "My text".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform