Click to See Complete Forum and Search --> : How to use DB grid control?


Shahzad
April 9th, 1999, 08:52 AM
people say grid control is easy to use, but I have spent some time with this control but not able to make it work. How do we attach the database and tables etc
Any tips in this regard are more than welcome.

April 15th, 1999, 11:35 PM
In your project, select CFormView as base class for the view class if you want the grid in a view. Bring the Microsoft data control(data1) to the dialog. Set datasource to a data source (you had created earlier using control panel). Set Recordsource property of data1. Then bring datagrid to the dialog. Set grid databound to data1. In VB, you can set properties for individual column at design time. You can manipulate columns properties at run time in the code in VC.