CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Location
    slavia
    Posts
    42

    is it able to merge specific cells of datagrid control ?

    dear all,
    i wonder, is it able to merge cells of datagrid control ?
    i am building an inventory application in vb6 with SQL Server as DBMS.
    i want to deliver the data like this :
    Code:
    -------------------------------------------------------------
    TransID    | Customer |  Products Bought            |
    -------------------------------------------------------------
    T0001       | Jane         | Sugar, Candy                 |
                     -----------------------------------------------
                     | John         | Shoes, short, T Shirt      |
    -------------------------------------------------------------
    T0002       | Mandy      | Mouse, KeyBoard           |
                     |                 | Memory, Processor         |
                      -----------------------------------------------
                     | Jessica     | Monitor, DVD, Speaker,  |
                     |                 | SoundCard, VGA CArd    |
                     ------------------------------------------------
                     | Joan         | Toshiba Laptop              |
    --------------------------------------------------------------
    T0003       | Carrie       | Groban VCD, Ball, Table |
    -------------------------------------------------------------
    is it possible to build such view using DataGrid ? or
    maybe there is another way to build such this not using DataGrid ?

    Thnx in advance

    rgrds,

    Szpilman
    Attached Files Attached Files
    Last edited by szpilman; January 15th, 2007 at 11:14 PM. Reason: the table view is not so clear

  2. #2
    Join Date
    Sep 2006
    Posts
    635

    Re: is it able to merge specific cells of datagrid control ?

    maybe Data Provider SHAPE is useful for you want.

  3. #3
    Join Date
    Oct 2006
    Location
    slavia
    Posts
    42

    Re: is it able to merge specific cells of datagrid control ?

    sorry if i keep on asking..
    would u explain more about Data Provider Shape ?

    thnx

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: is it able to merge specific cells of datagrid control ?

    Not with a DataGrid, but with a MSHFlexgrid, you can shape to suit your needs.
    Attached Files Attached Files
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Oct 2006
    Location
    slavia
    Posts
    42

    Re: is it able to merge specific cells of datagrid control ?

    thnx very much David

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