We're using C#.
Need to hide Delete button on GridView programmatically when user has certain roles, etc.
Found this online and looks great but does not hide Delete button:
this.GridView1.AutoGenerateDeleteButton = false;
I"ve tried putting it in the Page_Load event handler and the GridView1_RowDataBound event handler.
I'd like to use this command as it seems very straigtforward. Ideas?