Solved

Disable DetailsView CommandField

Posted on 2008-06-26
1
1,059 Views
Last Modified: 2013-11-07
Hi All,

I have a two public variables on a web page. One is a count of prerequisite courses and the other is a count of courses that a user has taken which match the prerequisite courses. What I'm trying to achieve here is if the users count is less than the prerequisite count then there is a course which the user needs to take prior to being allowed to book the course they are viewing, which the information is held in a DetailsView. The CommandField (Select Button) is the command that allows them to book the course, so I need to disable this button if the above situation occurs.

Any ideas how I would achive this?

Thanks.
0
Comment
Question by:G0ggy
1 Comment
 
LVL 11

Accepted Solution

by:
G0ggy earned 0 total points
ID: 21872989
Answered myself.
dtvClassDetails.Fields(7).Visible = False

Open in new window

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question