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.   


  3. #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

  4. #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 PowerShell
DNS Lookup Server General
Re: DNS - Reverse lookup configuration Vista Forums
dn -> sam acct lookup PowerShell
Reading the Powershell progress bar (activity + progress) with C# PowerShell