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
Does anyone know how to make a disk image from the iphone memory?
Macro that will create 52 otherwise identical named ranges, each with a different number in the middle.
Restore from older backups
phpbb forum
Gateway for Server automatically being removed after restart
Sync Access database contacts with Exchange Contacts list
store comma separated multiple numbers in a mysql database field database and query them efficiently
How Do I Create a Pie Chart from a DataTable
VS 2003 with .NET Framework 3.5
PL/SQL Performance