About
Pricing
Community
Teams
Start Free Trial
Log in
pointeman
asked on
7/6/2012
Gridview Linkbutton Disable and Keep Black Forecolor?
I can disable a Linkbutton in a Gridview like so. I also need to keep its normal 'Black' forecolor. My Forecolor attempt is not working, still grayed-out. Help.
LinkButton lb = (LinkButton)e.Row.FindCont
rol("lbPar
tNo");
if (lb.Text.Trim() == "123456")
{
lb.Enabled = false;
lb.ForeColor = System.Drawing.Color.Black
;
}
ASP.NET
2
1
Last Comment
pointeman
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rajar Ahmed
7/8/2012
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pointeman
7/9/2012
ASKER
Thx
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck