hi all,
I have a asp page. In that i am displaying some data in a grid view from database.In grid view i am displaying TicketNo,TicketName and status. Now my problem is that when page loads if the status have a value as 'OPEN' that row should be in red color.(My intension is when we look at that gridview we should easily trace the new ticket(Open))
here is my gridview code.
Sql = new SqlDataAdapter("Select * from view_Ticket order by TicketNo desc", con);
DataSet ds = new DataSet();
Sql.Fill(ds);
mydataview = ds.Tables[0].DefaultView;
if (sortExp != string.Empty)
{
mydataview.Sort = string.Format("{0} {1}", sortExp, sortDir);
}
GridView1.DataSource = mydataview;
GridView1.DataBind();