Home | Articles|Namespace|Interview Questions|Tools|Jobs|Projects|Community
Asp.net Tutorials

»Dotnet Ads
»Message Boards
Message Boards
Dotnet Books

»Member Details
Register
Login
LogOut
Submit Code
Submit Jobs
Submit Projects

»Competition
Community
Winners
Prizes
Write For Us
Members

»Other Resources
Links
Dotnet Resources


Forums»C# .NET »



DataGrid issues need answer

hi

i have a datagrid .i want to change the color of that row in datagrid when i mouse click on the anywhere in the row
posted by:anonymous on 11/28/2007 1:11:47 AM
Change the color of that row in datagrid when you mouse click on the anywhere in the row

write this code in this function

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "this.style.backgroundColor='Yellow'");
}
}


Have a nice programming
Rajendra Prasad Kuldeep
posted by:Rajendra  on 12/2/2007 9:40:25 PM
© 2008 dotnetwatch.com -- Privacy policy

Website Design & Internet Marketing by Shivam