CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: DataGrid

  1. #1
    Join Date
    Apr 2001
    Posts
    33

    DataGrid


    I would like to ask question on Visual Basic. i using a datafrid to display information which connect to my database. can the datagrid calling 2 table and displayed the information in the same table.

    FYI, the fields and data type for the 2 table are same.

    Regards,
    Wilson Chai

  2. #2
    Join Date
    Apr 2001
    Posts
    9

    Re: DataGrid

    You'll have to use the "UNION"-statement of SQL to display two tables in one grid:
    e.g.:
    set DTA.Recordsource="Select * from table1 union select * from table2") '-->


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