Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create more columns from datagrid Control 6.0 ???

Status
Not open for further replies.

ora06

Programmer
Feb 11, 2004
15
FR
Hi ,
I work with C++ for my final test ,
I use DataGrid Control 6.0 (OLEDB) to store the data , but the default column properties is only 2 , i can

create more
i use the ADODB to manipulate the database ( a table is more than 2 cols) so i cant view all fields from the

table.

I try from MSDN but i cant find anythings... hic
Help me to create more cols from the DataGrid

Thanks in advances
 
after you execute a query, you should update the grid with newly returned recordset

Ion Filipski
1c.bmp
 
Thanks

I write the SQL statement in ADODC Source then i use this for the datagrid's datarrecord source . But in the tab column of datagrid's property , only 2 cols : Col1 and col2, and i manupulate more than 2 fields from table.

How can i update it ???
 
In your case you should add at the first as many columns as you need to your datagrid. Don't forget to erase all the data before.

Ion Filipski
1c.bmp
 
Hic

I cant do it
I cant add the column , this is my problem

I also open the property of the datagrid and the CDataGrid
but i find nothing

I want to post the image but imposible

Pls , help me more clear
 
I don't know exactly what is DataGrid, but most grid I know has properties like ColumnCound or Columns what you can get/set dinamically. Look at your DataGrid in OleView and see what properties does it support.

Ion Filipski
1c.bmp
 
Thanks Ion

I found it , Update the Service pack 5 for visual studio
from microsoft.com -> OK

I thinks this control has errors...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top