public void Plots_colour(string image) { cmd = new SqlCommand("Select Plotid from Mas_PlotDetails where Sold_Status='1' and projid='PR001'", con); cmd.Connection.Open(); SqlDataAdapter daa = new SqlDataAdapter(cmd); DataSet dss = new DataSet(); daa.Fill(dss); for (int i = 0; i < dss.Tables[0].Rows.Count; i++) { foreach (GridView row in Gridview.Rows) { // row.FindControl("Image1"). = System.Drawing.Color.Red; } } }
Image ib = ((Image)GridView1.Rows[j].FindControl("img")); ib.BackColor=System.Drawing.Color.Red;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)