can somebody tell me how to change the background color of the
datagrid on runtime.
            Control l_Control1 = e.Row.FindControl("txtApplnm");
            if (l_Control1 != null)
            {
                string Value = (string)((System.Data.DataRowView)
e.Row.DataItem)["txtApplnm"];
                if (Value == "Flexcube")
                {
                    e.Row.BackColor = Color.FromName("#FAF7DA");
                }
            }

Reply via email to