|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Simple data grid questionHello
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. 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. >
how do I call a SQL Server stored procedure?
Application.Run Problem Retrieve data from xml document Determining the Browser and event.keyCode vs. event.which blank form when debugging difference between ME and MYCLASS Inheritance doubt. hair cross cursor advice needed for a good book to make good database applications How select from 2 ADO.NET DataTables? |
|||||||||||||||||||||||