Using a datagrid to display info from database

  • Thread starter Thread starter darkhonor
  • Start date Start date
D

darkhonor

Is it possible to be able to select a single row in a datagrid and use
that selection to open a new form that contains all of the data in
the row? I'm working on a home inventory program in VC++ with a
database backend and I'd like to be able to standardize the forms
used. But I can't get around an effective means to edit a selected
data item. Any ideas?

Thanks!
Alex
 
Take a look at the CurrencyManager class. Sceppa uses a very similar example
in his book ADO.Net. CM is ridiculously easy to implement, yet my C++ skills
are minimal at best.

darkhonor said:
Is it possible to be able to select a single row in a datagrid and use
that selection to open a new form that contains all of the data in
the row? I'm working on a home inventory program in VC++ with a
database backend and I'd like to be able to standardize the forms
used. But I can't get around an effective means to edit a selected
data item. Any ideas?

Thanks!
Alex
 
Back
Top