Change Gridview row color
Hi.....!
I use VS2008 for ASP.NET
I want to change my gridview's row color using button control when I select it.
Ex:-
If I select 1st row,then I could be able to change the selected ROW color by pressing a button.
I need someone's help....!!!!
thanks...
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Oct 11, 2008, 9:06 AM EDT
protected void Button1_Click(object sender, EventArgs e)
{
GridView1.SelectedRow.BackColor = System.Drawing.Color.CadetBlue;
}
Charith Liyanagamage112 reputationPosted Oct 11, 2008, 10:34 AM EDT