codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Disabling/enabling the textbox of EditCommandColumn based on value  ninel at 15:25 on Monday, February 20, 2006
 

I have a datagrid on my web form. The datagrid displays an employee's name, their Login time and Logout time. I allow users to edit the Logout columns by using the EditCommandColumn control.

My question is...I have an id returned by a stored procedure that populates the datagrid. If the id returned is "1" I want the Login time to also be editable, but if the id is "2" the Logout time should not be editable.

Is there a way I can do this?
Any help would be greatly appreciated,
Ninel









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  I NEED HELP!!!!!!!!
•  JavaScript & PDF
•  Re: Help !Sorting Problem !!!
•  Re: Jbutton events
•  Re: im trying to sort my program with insertionSort and selectionSort
•  trouble with literal
•  Re: need help
•  How to go from a novice to a senior/Tech lead/architect etc in short span of time?
•  Java Speech API (JSR 113)


Recent Articles
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net
Creating CSS Buttons


© Copyright codetoad.com 2001-2006