On Jul 11, 4:40 am, pelegk1 <pele...@discussions.microsoft.comwrote:
i want in my GridView
to color in some colors background of the rows,when i have certin values in
the binded data.
how can i do this?
thnaks in advance
peleg
hi try this hope help
private void DG_RowDataBound(object o, GridViewRowEventArgs e)
{
// apply custom formatting to data cells
if (e.Row.RowType == DataControlRowType.DataRow)
{
// set formatting for the category cell
TableCell cell = e.Row.Cells[0];
cell.BackColor = System.Drawing.Color.LightGray;
}
nahid
http://nahidulkibria.blogspot.com/ http://www.kaz.com.bd
}