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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Microsoft DataGrid Control with VC++

Status
Not open for further replies.

fheyn

Programmer
Mar 22, 2001
198
DE
Well, I posted this question before but yet hav'nt got any respones to it.
I'd like to use the Microsoft Datagrid Control with a project I'm working at. I was able to include the control
into that project but am unable to use it beyond it's 2 default columns. The installation creates a lot of classes but I do not know how they interact with eachother.
Does anyone know how to work with that control or knows about some informative literature (MSDN is no help) ?

Thanks
 
I may be speaking out of turn since I am have not used this one but I am guessing that it works somewhat like flexgrid.
You can right-click on it to access it properties. This lets you set up its appearance.
Then (after making sure that you have included its header file in your .cpp file) you can declare an instance of it in your file. This will allow you to use its methods.
I will say that the msdn help is not very useful for most things and this is probably another example of that.
Hope this is helpful.

Steve
 
In continuation to steve's solution :
I have no idea about VC++ but the same works with VB6

When you press the right mouse button on DataGrid, it popup
a menu where you will find insert option which will enable you to insert the new cols into datagrid (If not found, please search insert option in property). To make any modifications in grid formating, you should select property from popup memnu.

Thanks
Tilak Raj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top