473,473 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I dynamically prevent my drop EditItemTemplate dropdown list from occuring?

In my gridview I have a list of chassises paired with hard drives and the current chassis user. On editing I have a users dropdownlist and I have a dropdown list of hard drives. How can I make it so that if my Chassis type is "fixed" then the hard drives dropdownlist shouldn't appear (only the previous value will be displayed) but still allow the users the be changed?
Oct 19 '10 #1
1 1191
Frinavale
9,735 Recognized Expert Moderator Expert
You need to implement a method that handles the User-DropDownList's SelectedIndexChanged event. Make sure that the User-DropDownList is set to autopostback=true so that the SelectedIndexChanged event will be executed.

In the SelectedIndexChanged event check to see if the selected item is "fixed"...if so, then set the Visible property for the Hard-Drives-DropDownList to false to hide it....otherwise set the Visible property to True.

-Frinny
Oct 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Rod Early | last post by:
I need to know when the select element's dropdown list is opened (as when the user clicks on the arrow or does ALT-downarrow from the keyboard). Similarly, I need to known when the dropdown list...
1
by: relaxedrob | last post by:
Hi All, I want to write a select control and use a Javascript function to handle all click events on the control. Under certain circumstances I also wish to prevent the dropdown's list from...
1
by: t.kiesche | last post by:
Hello I want to make a textfield (INPUT type=text) or something that looklike this, to drop down a list with word. Just like: A user writes the letter 'a' and in the dropdown list come a...
1
by: Ian Davies | last post by:
Hello In a php file I have a drop down list with index numbers in whos default value is feed into an sql query that filters records from my database and displays them in an html table. Trouble...
6
by: San Smith | last post by:
I have a dropdown list box with list of item. When I read the data from database I want to display that value(one of the item in the drop down box) in the dropdown list box. How to do that in a...
6
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. ...
1
by: Yoshitha | last post by:
Hi in my web form i had dropdown list control and using items property i;ve added "--- select Item-----" 0 1
4
by: mathewgk80 | last post by:
Hi everybody, I am having a drop down list with items 1,2,3.. and another dropdown list with items apple,orange and lemon.. If i select item 2 in the first dropdown list i need to get orange as...
0
by: progman417 | last post by:
I have a gridview with a dropdown list in an EditItemTemplate. I haven't set a width for the columns, so that they dynamically size according to the data displayed. When it goes into edit...
2
by: godkrishna | last post by:
Hi Guys.. I am new to javascript.. pls bare with me :) In my form, i have a table with two columns. first column has checkboxes and second has dropdown lists. On check of each check box.....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.