PC Review


Reply
Thread Tools Rate Thread

C# - Datagrid - using dropdownlists?

 
 
Marlene Harkcom
Guest
Posts: n/a
 
      4th Aug 2003
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?
 
Reply With Quote
 
 
 
 
Lewis Wang [MSFT]
Guest
Posts: n/a
 
      5th Aug 2003
Hi Marlene,

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

http://groups.google.com/groups?q=v-...r=&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" <(E-Mail Removed)>
| Sender: "Marlene Harkcom" <(E-Mail Removed)>
| Subject: C# - Datagrid - using dropdownlists?
| Date: Mon, 4 Aug 2003 10:46:00 -0700
| Lines: 15
| Message-ID: <035801c35ab0$442ed650$(E-Mail Removed)>
| 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?
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Better way for dropdownlists =?Utf-8?B?TWFkaXNvbg==?= Microsoft ADO .NET 5 12th Nov 2007 11:41 AM
IE7 and dropdownlists =?Utf-8?B?Tkg=?= Microsoft ASP .NET 0 23rd Oct 2006 01:11 PM
Using DropDownLists et Microsoft ASP .NET 4 3rd Apr 2006 09:24 AM
DropDownLists Steve Caliendo Microsoft ASP .NET 0 8th Jun 2004 09:02 PM
ASP.Net DataGrid VS. DropDownLists Chris Microsoft ASP .NET 1 23rd May 2004 12:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:29 AM.