Oct 20, 2004 #1 Komil13 Programmer Joined Sep 26, 2001 Messages 50 Location 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.
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.
Oct 20, 2004 #2 BoulderBum Programmer Joined Jul 11, 2002 Messages 2,179 Location US In the ItemDataBound event handler you can look at your data then enable/disable the button depending on your criteria. Upvote 0 Downvote
In the ItemDataBound event handler you can look at your data then enable/disable the button depending on your criteria.
Oct 20, 2004 #3 jzelhart Programmer Joined Feb 10, 2003 Messages 469 Location US 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 Upvote 0 Downvote
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