I have a Gridview with ItemTemplate using some Labels and 3 Button (Deactivate, Delete and Edit) as seen in picture below:
I want to hide these buttons from some users base on their username (Label UserName on Gridview), for example:
If UserName == "some string"
then hide the Deactivate, Delete and Edit buttons
How do I do this in code behind RowDataBound
event?