PC Review


Reply
Thread Tools Rate Thread

Disable GridView Controls in Edit Mode

 
 
GridView Newbie
Guest
Posts: n/a
 
      8th Sep 2008
I have a business requirement stating that when the Location Type is "C" the
user should not be able to update the StoreNumber. So, when the user clicks
the "edit" button in the GridView for a row, I need to check the value of
location type for that row and then disable the control for the Store Number.

The problem is I only need to do this when editing. I have put the logic in
the DataRowBound event. In the RowEditing event a application variable is
set indicating that the mode if "Edit".

Is there a better way to do this? Is there something already built into the
GridView that could make this checking easier? Thanks in advance for any
help!!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView edit mode issue David C Microsoft ASP .NET 2 5th Nov 2009 06:20 PM
How to tell if gridview row is in edit mode JJ Microsoft ASP .NET 1 8th Jun 2007 05:30 PM
GridView Edit Mode in ASP.NET 2.0 Sridhar.Ammula@gmail.com Microsoft ASP .NET 1 16th Oct 2006 06:35 PM
disable edit button in gridview Mike P Microsoft ASP .NET 1 8th Jun 2006 09:41 AM
populating gridview controls in edit mode Mike P Microsoft ASP .NET 0 2nd Jun 2006 11:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:00 AM.