TrimTrom
May 13th, 1999, 04:01 PM
Hello all,
VC++ 6.0 Professional, Windows 98
I am trying to create an application, based on AppWizard, which
incorporates the DBGrid. As I am new to VC++, I have come across a few
problems.
I have done the visual bit of drawing the grid on a form, going into
ClassWizard, and adding a member variable, and then generating the
wrapper classes. What I can't find is how to replicate the role that
the data control plays in VB. When I look at the Property Pages of the
grid, the DataSource field seems to need a Data Control, yet I have
investigated how to add this, and I couldn't find anything that looked
like the data control under Add To Project->Components and Controls. I
don't even know what the OCX filename is for the data control. Or does
one have to set the datasource in code with the SetDataSource method???
I would really appreciate some help here, hopefully with the necessary
code quotes.
Hopefully,
TrimTrom
----------------------------------
Email: paul.trimming_nospam@dial.pipex.com
4, High St, Merstham
Surrey RH1 3EA, England
----------------------------------
VC++ 6.0 Professional, Windows 98
I am trying to create an application, based on AppWizard, which
incorporates the DBGrid. As I am new to VC++, I have come across a few
problems.
I have done the visual bit of drawing the grid on a form, going into
ClassWizard, and adding a member variable, and then generating the
wrapper classes. What I can't find is how to replicate the role that
the data control plays in VB. When I look at the Property Pages of the
grid, the DataSource field seems to need a Data Control, yet I have
investigated how to add this, and I couldn't find anything that looked
like the data control under Add To Project->Components and Controls. I
don't even know what the OCX filename is for the data control. Or does
one have to set the datasource in code with the SetDataSource method???
I would really appreciate some help here, hopefully with the necessary
code quotes.
Hopefully,
TrimTrom
----------------------------------
Email: paul.trimming_nospam@dial.pipex.com
4, High St, Merstham
Surrey RH1 3EA, England
----------------------------------