I have a DataGrid and I do some formating of cell colors during the ItemDataBound event. For some reason, every other row is either not raising an event, or is not getting formated.
I'm using this code:
DataGridItem item = e.Item;
if (item.ItemType == ListItemType.Item)
{
// do the formatting
}
should I also include ListItemType.AlternatingItem?
I'm using this code:
DataGridItem item = e.Item;
if (item.ItemType == ListItemType.Item)
{
// do the formatting
}
should I also include ListItemType.AlternatingItem?