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...
Charith LiyanagamagePosted Oct 11, 2008, 2:34 PM
Scott LyslePosted Oct 11, 2008, 1:06 PM
protected void Button1_Click(object sender, EventArgs e)
{
GridView1.SelectedRow.BackColor = System.Drawing.Color.CadetBlue;
}