C# - Datagrid - using dropdownlists?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marlene Harkcom

    #1

    C# - Datagrid - using dropdownlists?

    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?
  • Lewis Wang [MSFT]

    #2
    RE: C# - Datagrid - using dropdownlists?

    Hi Marlene,

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


    =UTF-8&selm=jj0jaw9V DHA.2080%40cpms ftngxa06.phx.gb l&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" <marlene.harkco m@verizonwirele ss.com>
    | Sender: "Marlene Harkcom" <marlene.harkco m@verizonwirele ss.com>
    | Subject: C# - Datagrid - using dropdownlists?
    | Date: Mon, 4 Aug 2003 10:46:00 -0700
    | Lines: 15
    | Message-ID: <035801c35ab0$4 42ed650$a101280 a@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: AcNasEQuI65FXzr zQBec1qXGIu2ahw ==
    | Newsgroups: microsoft.publi c.dotnet.genera l
    | Path: cpmsftngxa06.ph x.gbl
    | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:103393
    | NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
    | X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    |
    | 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?
    |

    Comment

    Working...