473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

c# - Datagrid and drop down lists

I've got a datagrid with 5 bound columns in it as well as
an edit/update/cancel column. I'm binding this to a
dataset. One of the fields is always going to be one of
three values.
I want the user to be able to hit the edit button and have
this particular column become a drop down list where the
true value is selected, but they can choose one of the
other two values. I've been able to add a dropdownlist
column as a template column, but it is an editable
dropdownlist all of the time- I don't want that. I only
want it to be a drop down list when the person
chooses "edit".

Can anyone *please* help me out?
Nov 15 '05 #1
1 6530
Hi Marlene,

I have replied you in another same issue you post:
http://groups.google.com/groups?q=C%...downlists%3F+v
-lwang&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=HznC7gwWDHA.2164%40cpmsftngxa06.phx.
gbl&rnum=1

Please let us know if the information helps you resolve the problem. Thanks.

Best Regards,
Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "Marlene harkcom" <ma*************@verizonwireless.com>
| Sender: "Marlene harkcom" <ma*************@verizonwireless.com>
| Subject: c# - Datagrid and drop down lists
| Date: Mon, 4 Aug 2003 10:50:51 -0700
| Lines: 14
| Message-ID: <02****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNasPIfuuz/bQ3yQzW0587E9ihCfA==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:174054
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I've got a datagrid with 5 bound columns in it as well as
| an edit/update/cancel column. I'm binding this to a
| dataset. One of the fields is always going to be one of
| three values.
| I want the user to be able to hit the edit button and have
| this particular column become a drop down list where the
| true value is selected, but they can choose one of the
| other two values. I've been able to add a dropdownlist
| column as a template column, but it is an editable
| dropdownlist all of the time- I don't want that. I only
| want it to be a drop down list when the person
| chooses "edit".
|
| Can anyone *please* help me out?
|

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim K. | last post by:
After reading countless articles on these controls, I still don't have a clear direction. I need a control (similar to the Query grid in MS Access) that will hold table and column names selected...
3
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists. Each group of Drop Down Lists include 3 Drop Down Lists for date such as: DAY, MONTH, and YEAR. I don't want...
13
by: Leszek Taratuta | last post by:
Hello, I have several drop-down lists on my ASP.NET page. I need to keep data sources of these lists in Session State. What would be the most effective method to serialize this kind of data...
2
by: Eric Dan | last post by:
Hi, Even tough I was able to implement what I want in a weird and non efficient way, I would like to get an opinion what is the right way to achieve my task: Scenario: • Display a DataGrid...
0
by: Davey P | last post by:
I have a datagrid and am populating it with template columns dynamically at runtime. I have created a class that inherits ITemplate and populates the cells with a Drop Down List in the...
7
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists. Each group of Drop Down Lists include 3 Drop Down Lists for date such as: DAY, MONTH, and YEAR. I don't want...
1
by: Sam | last post by:
Hi, Do you know if it's possible to have a datagrid that contains drop-down lists ? Thx
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
3
by: jcassan | last post by:
Hello folks. I am new to these forums and have something, which has been stumping me for little while. I am using pspell to spellcheck a scrolling textbox (textarea) containing user input. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.