C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




change the color of grid srilu n all pls help mee


Posted Date: 20 Jun 2008      Total Responses: 3

Posted By: shazia khan       Member Level: Gold     Points: 1



hiii

i am using grid in which i am using autogenerate selection button = true
now i want that when i select the record the background colou is change soo that its shows that record is selected pls tell me how to dooo



regards





Responses

Author: Virender Kumar    20 Jun 2008Member Level: GoldRating:     Points: 2

you can do it by using Item data bound event of grid view.
in this event u can track that which row's button is clicked and according to that u can change the color of the row.



Author: srilu    20 Jun 2008Member Level: DiamondRating:     Points: 2


protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
int i=Convert.ToInt32(e.CommandArgument);
GridView1.Rows[i].BackColor = System.Drawing.Color.Blue;

}



Author: Gaurav Agrawal    20 Jun 2008Member Level: DiamondRating:     Points: 2

http://www.rupeemail.in/rupeemail/invite.do?in=MTAxNTM0JSMlS0hqblZtUFI0c3BmTmw2azNNVDhyb1dCaA==

Register on this site by this link



Post Reply
You must Sign In to post a response.
Next : xml Xsd Validation
Previous : What is the use of Sealed class. how to call sealed class methods. explain with an example
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use