Posted 06 Nov 2016 Link to this post
I use Skin Bootstrap and RenderMode Lightweight
Bootstrap use AlternatingItemStyle gray. I dont want to use that, i want have White for all items
I try set <AlternatingItemStyle BackColor="#ffffff" /> Not works....
<ItemStyle BackColor="#ffffff" /> works fine....
BackColor="#ffffff" Not works....
How to use White for all items in grid?
Posted 10 Nov 2016 Link to this post
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem item = (GridDataItem)e.Item;
(item.ItemIndex % 3 == 0)
// custom condition
foreach
(TableCell cell
in
item.Cells)
cell.BackColor = System.Drawing.ColorTranslator.FromHtml(
"#b64949"
);
}