Microsoft
Software
Hardware
Network
Question : Can't hide GridView Delete button programmatically -- help!
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.AutoGenerat
eDeleteBut
ton = 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?
Thx!
Answer : Can't hide GridView Delete button programmatically -- help!
you could do something like this in the rowdatabound if that is not working
if (((LinkButton)e.Row.Cells[
0].Control
s[2]).Text
.Equals("D
elete", StringComparison.CurrentCu
ltureIgnor
eCase))
{
e.Row.Cells[0].Controls[2]
.Visible = false;
}
Random Solutions
Network connection intermittently blocks a port Error 619
How to Determine what SQL Databases are Installed & Running?
Proliant ML110 G4 Lost RAID and Randomly gives Error 0251
average value of a function
Cost of CAT5e cable installation
JavaScript: Alert when checkbox value changed
Any ideas how to create your own loadbalancer using linux?
Outlook 2007/Mozilla Thunderbird Cannot Connect to Email Server
Windows XP and Microsoft Outlook and Windows Installer problems
This search script is presenting the option for Next 10 when there aren't any results. What do I need to add to not show when there aren't results?