hi,
you can do it like this.
// add RowDataBound event to your gridview
<asp:gridview id="GridCall" onrowdatabound="GridCall_RowDataBound" ...>
...
</asp:gridview>
protected void GridCall_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label lblStatus= (Label)e.Row.FindControl("lblStatus");
if(lblStatus.Text == "hold")
{
lblStatus.ForeColor = System.Drawing.Color.Yellow;
}
else if(lblStatus.Text == "unsolved")
{
lblStatus.ForeColor = System.Drawing.Color.Red;
}
}
}
hope it helps.