• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1270
  • Last Modified:

Disable Edit (Buttons) in FormView and GridView in ASP.NET / VB.NET

ASP.NET/VB.NET
How do I disable the Edit Button in a FormView and Gridview that is normally editable except when a certain column is set - All rows would become uneditable......
0
tlatacki
Asked:
tlatacki
  • 3
1 Solution
 
sabeeshCommented:
Using FindControl get the control and set the property to disable.
0
 
tlatackiAuthor Commented:
How about an example.
0
 
tlatackiAuthor Commented:

Ok - I have it working for a FormView - But Can't figure out how to access in a GridView
0
 
tlatackiAuthor Commented:

Got my solution - Thanks for the direction
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now