Home > ASP.NET 2.0 > Selectable grid in ASP.NET 2.0 (Visually)

Selectable grid in ASP.NET 2.0 (Visually)

Thursday, 24 April, 2008 Leave a comment Go to comments

protected void Grid_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "this.style.backgroundColor='#FFE4B5'";
e.Row.Attributes["onmouseout"] = "this.style.backgroundColor='#FFFFFF'";
}
}

Advertisements
Categories: ASP.NET 2.0 Tags: ,
  1. Monday, 28 April, 2008 at 2:32 pm
  2. Monday, 28 April, 2008 at 4:55 pm

    Thanks!!!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: