Posted 20 Feb 2013 Link to this post
boundColumn1.ItemStyle.BackColor = Color.Red;
OR
void
grid_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem item = (GridDataItem)e.Item;
item[
"UniqueName"
].Attributes.Add(
"style"
,
"background-color:Blue"
);
//OR
].BackColor = Color.Red;
}
Posted 22 Feb 2013 Link to this post
Posted 29 Aug 2016 in reply to Shinu Link to this post
Hello,
is it possible to add custom attribute to GridBoundColumn declaratively (from .ASPX) ?
Thank you
Vasssek
Posted 01 Sep 2016 Link to this post