C# - Datagrid - using dropdownlists?

  • Thread starter Thread starter Marlene Harkcom
  • Start date Start date
M

Marlene Harkcom

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 also
wasn't able to bind the value in the list to the value
from the database. I only want it to be a drop down list
when the person chooses "edit".

Can anyone *please* help me out?
 
Hi Marlene,

You can check this link, I think it should be helpful.

http://groups.google.com/groups?q=v-lwang+dropdownlist&hl=en&lr=&ie=UTF-8&oe
=UTF-8&selm=jj0jaw9VDHA.2080%40cpmsftngxa06.phx.gbl&rnum=2

Please let me know if you need more information, thanks.

Best Regards,
Lewis

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "Marlene Harkcom" <[email protected]>
| Sender: "Marlene Harkcom" <[email protected]>
| Subject: C# - Datagrid - using dropdownlists?
| Date: Mon, 4 Aug 2003 10:46:00 -0700
| Lines: 15
| Message-ID: <[email protected]>
| 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: AcNasEQuI65FXzrzQBec1qXGIu2ahw==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:103393
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| 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 also
| wasn't able to bind the value in the list to the value
| from the database. I only want it to be a drop down list
| when the person chooses "edit".
|
| Can anyone *please* help me out?
|
 
Back
Top