public void rgTickets_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
{
if (e.Item.Cells[5].Text == PriorityType.PriorityName.Critical.ToString())
{
e.Item.Cells[5].Style.Add(
"background-color", "red");
}
}
}
How do I get around finding the cell by Index? If the columns are moved around it will not find the correct cell. I would like to change it to something else.