|
Khan, finally modify it:
First 3 columns
DataList1_ItemDataBound
Write in event
if ((e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)&&(e.Item.ItemIndex == 0 || e.Item.ItemIndex == 1 || e. Item.ItemIndex == 2))
{
e.Item.Style.Remove ("background-color");
e.Item.Style.Add ("background-color", "red");
} |
|