Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Datagrid Add button

Status
Not open for further replies.

Komil13

Programmer
Sep 26, 2001
50
US
Hey guys,

I am trying to disable a 'Add' button in the datagrid so that it can only be clicked on once. Any ideas how to implement that?

So far, I've tried using the ItemCommand event of the datagrid, but that does not work.

Thanks for your help.
 
In the ItemDataBound event handler you can look at your data then enable/disable the button depending on your criteria.
 
Why don't you try a normal button outside of the grid. You can then disable it after it has been ran.

Hope everyone is having a great day!

Thanks - Jennifer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top