Simple data grid question

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.
 
S

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top