CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    388

    How to use DB grid control?

    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.


  2. #2
    Guest

    Re: How to use DB grid control?

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured