Windows Vista Forums

Lookup in DataGridView? Any Progress? Worth Trying?

  1. #1


    Patrick A Guest

    Lookup in DataGridView? Any Progress? Worth Trying?

    In a DataGridView, is it possible to have a column that manages user
    input by providing a "drop down" list of values the user can choose
    from, with those values either being "spelled out" in code or read
    from another db.table.column?

    If so, does anyone know where I might find instructions on how to set
    that up?


    I've seen lots of old posts on this topic, but nothing necessarily
    specific to the latest incarnation of the DataGrid, the DataGridView.


    Is it worth trying to pop a List Box on the ColEdit event, let the
    user "select" from the List Box, and "write" the value the user
    selects to the cell they are editing?

    Thanks,

    Patrick

      My System SpecsSystem Spec

  2. #2


    Patrick A Guest

    Re: Lookup in DataGridView? Any Progress? Worth Trying?

    Was just told about the
    microsoft.public.dotnet.framework.windowsforms.controls group, and may
    have found my answer.

    Anyone had luck with this?

    Column Types in the Windows Forms DataGridView Control
    http://msdn.microsoft.com/en-us/library/bxt3k60s.aspx

      My System SpecsSystem Spec

  3. #3


    Family Tree Mike Guest

    Re: Lookup in DataGridView? Any Progress? Worth Trying?

    On 12/10/2009 5:53 PM, Patrick A wrote:

    > In a DataGridView, is it possible to have a column that manages user
    > input by providing a "drop down" list of values the user can choose
    > from, with those values either being "spelled out" in code or read
    > from another db.table.column?
    >
    > If so, does anyone know where I might find instructions on how to set
    > that up?
    >
    >
    > I've seen lots of old posts on this topic, but nothing necessarily
    > specific to the latest incarnation of the DataGrid, the DataGridView.
    >
    >
    > Is it worth trying to pop a List Box on the ColEdit event, let the
    > user "select" from the List Box, and "write" the value the user
    > selects to the cell they are editing?
    >
    > Thanks,
    >
    > Patrick
    It sounds like you want a DataGridViewComboBoxCell. Look here:
    http://msdn.microsoft.com/en-us/libr...boboxcell.aspx


    --
    Mike

      My System SpecsSystem Spec

Lookup in DataGridView? Any Progress? Worth Trying?

Similar Threads
Thread Forum
Lookup values
Hello I have a long and horrible script and I am right at the end of it and am stuck. The situation is I have two csv files formatted like...
PowerShell
DNS Lookup
Can anybody help me understand how the DNS servers in multiple connection lists are used. When I have a VPN connection open there can be DNS...
Server General
Re: DNS - Reverse lookup configuration
OK, I've enabled secure updates of the reverse lookup zone. This seems to be working, and when I do NSLookup the server now knows what it's name...
Server General
Re: DNS - Reverse lookup configuration
"david" <david@newsgroup> wrote in message news:OVdt21nBKHA.4376@newsgroup If there are two DHCP servers, and one is updating DNS, and the other...
Server General
Re: DNS - Reverse lookup configuration
"david" <david@newsgroup> wrote in message news:OVdt21nBKHA.4376@newsgroup If there are two DHCP servers, and one is updating DNS, and the other...
Vista Forums
dn -> sam acct lookup
I'm trying to find examples of looking up the sam acct (DOMAIN\USER) if I have the DN. My script queries an AD group object for its members, but I...
PowerShell
Reading the Powershell progress bar (activity + progress) with C#
hi, i have an application which uses the Exchange Management Console (2007). It uses it through the RunSpace object (the code is written in C#)....
PowerShell