I am working on a form with a GridView, pulling data from an SQL Express database. The last column will be a Button that I want to be able to change based on what data is bound to that column.
The button will act as an ‘Enable/Disable’ toggle. Basically, if a user is enabled, I want the button to say ‘Disable’ and have the OnClientClick property point to a disable function; if the user is disabled, I want the button to read ‘Enable’ and point to an enable function.
My google-fu is weak today, hoping you all can be some help. Thanks in advance.
try this, i assume your Enabled/Disabled is a bit value in the DB