hi Mudassar
im trying to change gridview color row permnetly which are edited.. In My GV i have 4 columns like workid,name,dob,place
when user Edits these items I m storing Edited workid with boolean value in separate table called editeditems.. i used below code to change color in row data bound.. but its changing color of all rows Gv
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView row = (DataRowView)e.Row.DataItem;
if (Session["ordid"].ToString() != "")
{
string ordid = Session["ordid"].ToString();
DataTable dtw = service.GetEditedRow(ordid);
bool edited = Convert.ToBoolean(dtw.Rows[0]["edited"]);
if (edited == true)
{
e.Row.BackColor = Color.FromName("gray");
}
Session["ordid"] = "";
}
}
pls tell me where i went wrong or any other alternative ways to implement it
Thanks