I have a gridview that contains one linkbutton within itemtemplate.
I bind this gridview with a table from my database that displays different items.
When the gridview displays records and when the user clicks on an item of gridview then how can i change that item’s fontweight to bold and change that same item’s color.
I have a gridview that contains one linkbutton within itemtemplate. I bind this gridview
Share
Not 100% sure but you could do this client side as you create all the linkbuttons you use
linkbutton.Attributes.Add(“onclick”, “setBoldandColor(this)”)
then have a javascript function
function setBoldandColor(id)
{
//getElementById(id).style.font.bold=true;
//change color
}