Simple data grid question

  • Thread starter Thread starter Jason
  • Start date Start date
J

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.
 
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.
 
Back
Top