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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only