I have a GridView with auto generated Edit buttons, linked to an SQLDatasource with a "State" column in a table called "Leaves", Is there anyway that the Edit button appears only if the "State" of current list element is a specific value like "PENDING"?
The moral is that the user must have the ability to update his Leave Request only if it's state is "Pening". using C#, please lead me.