rajeev_23
asked on
how to disable a button on template column in datagridview?
I have 2 Buttons on a template column of datagridview in webpage of asp.net.
My need is to disable a button on the page load event.
please help
My need is to disable a button on the page load event.
please help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks you all the Experts
This Solution really worked for me with a little change
This Solution really worked for me with a little change
foreach (GridViewRow row in GridView1.Rows)
{
//access the button
Button cb = (Button)row.FindControl("Button2");
cb.Enabled = false;
//Button cb1 = (Button)row.FindControl("YourSecondbuttonId");
//cb1.Disable = true;
}
:) hehe thanks a lot ...
ASKER