Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gridview Disable Entire Delete Link/button?

Status
Not open for further replies.

T111

Programmer
Jun 28, 2003
91
0
0
IE
If a session value is true how to disable the entire delete button on the gridview.

e.g.
If session("AllowDeletes") = false then
me.gridview1.Allowdelete = false
End if

Thanks!
 
mmmm, that is asp.net (post the question in that forum).
maybe this will guide you in the right direction:

[link]http://www.tek-tips.com/viewthread.cfm?qid=1239568
[/url]
 
Ok just created 2 gridviews one with delete button and the other without then set the appropriate gridview visible depending on the session variable.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top