This may be obvious, but it eludes me. I want to capture the row color or alternating row color of a datagrid during the ItemCreated event.
The event handler looks like:
Sub dgData_ItemCreated(sender As Object, e As DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
This is where I lose it. syntax like e.item.backcolor or ListItemType.Item.BackColor or e.Item.Properties all cause errors. I'm sure I can access these properties, but can't quite figure the syntax.
End If
End Sub
Suggestions would be appreciated.
Thanks
Tom T
The event handler looks like:
Sub dgData_ItemCreated(sender As Object, e As DataGridItemEventArgs)
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
This is where I lose it. syntax like e.item.backcolor or ListItemType.Item.BackColor or e.Item.Properties all cause errors. I'm sure I can access these properties, but can't quite figure the syntax.
End If
End Sub
Suggestions would be appreciated.
Thanks
Tom T