Home All Groups Group Topic Archive Search About

Simple data grid question

Author
10 Mar 2006 6:40 PM
Jason
Hello

I've got a VB.net datagrid that I use to display some inforamtion from a
Acess DB.  In my datagrid I only display a few items of informatin, because
there are just to many cells per tuple to realisticaly display on each line
in the datagrid.

My question... How do I allow it, so that if I were to doubleclick (or use
the enter key) the data grid row another form is displays all the iformation
that is in that particular row?  Making the second form is no problem, but
how do I get it to open upon a double click?

A good example is Outlook, were you time, date, who, and subject are
displayed, then you can double click to see the message.

Author
27 Apr 2006 3:48 PM
Sam Malone
Respond to the DoubleClick event of your datagrid.
Save whatever info you need to identify the row/record in your grid or
underlying data in global variable(s)
"Show" to second form
In that form's load event retrieve the information from the Global
variables(s) mentioned above.
Populate your form accordingly.

Show quoteHide quote
"Jason" <some***@microsoft.com> wrote in message
news:%23baZlIHRGHA.4932@TK2MSFTNGP10.phx.gbl...
> Hello
>
> I've got a VB.net datagrid that I use to display some inforamtion from a
> Acess DB.  In my datagrid I only display a few items of informatin,
> because there are just to many cells per tuple to realisticaly display on
> each line in the datagrid.
>
> My question... How do I allow it, so that if I were to doubleclick (or use
> the enter key) the data grid row another form is displays all the
> iformation that is in that particular row?  Making the second form is no
> problem, but how do I get it to open upon a double click?
>
> A good example is Outlook, were you time, date, who, and subject are
> displayed, then you can double click to see the message.
>