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
How to retrieve and Entities Form or View Metadata
integrated wordpress into site. blog pic attachments not working.
SQL Database Backup "not permitted because it is not online"
Exchange 2010 Domain Prep
Exchange 2010 Remote Connectivity, SMTP
Database on a 64 bit OS - Conection issues
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
time duration on cfchart y axis
User's Web-Based AOL Mail is sending spam to all his contacts
Sonicwall - Spam Filter - Exchange Interaction