Greetings,
I'd like to set a GridButtonColumn invisible in the case the user does not have the rights to delete a row ( for instance )
The GridButtonColumn is declared like this:
The condition is this one :
if Session["rights"] gets the value 0, the GridButtonColumn must not be visible
Thanks in advance for your help
I'd like to set a GridButtonColumn invisible in the case the user does not have the rights to delete a row ( for instance )
The GridButtonColumn is declared like this:
<telerik:GridButtonColumn CommandName="Delete" Text="Supprimer" UniqueName="column2"></telerik:GridButtonColumn>The condition is this one :
string req = " SELECT rights from utilisateur WHERE login = '" + login + "'";int test = DA.DAConnexion.executeQueryScalar(req);Session["rights"] = test;Thanks in advance for your help