Adding columns to ADO DataGrid Control (6.0)?
I have an access2K DB. I want to show the contents of one table on an
MFC dialog based application (a typical book example). I inserted a ADO data
control (6.0) and hooked it up to my DB and specified access info and table.
Then I inserted a ADO DataGrid control and connect that to my data source.
My problem is datagrid control comes up with only 2 columns initially and I
just could not find a way to insert additional columns (the table in DB has
more than 2 columns). I went thru all the properties of the gridcontrol but
there was nothing I could find. I thought it would automatically find out
the number of columns or fields of the table from the data source and add
that many columns or at least have an option to add columns and tie them up
to fields of the table.
So how do you add a column to a data grid?
Thanks in advance
Mehmet