locked
C# Tables Inside of Tables RRS feed

  • Question

  • I'm trying to do something where there's one table with multiple tables inside of one, each table with a different number of arguments. How could I do something like this, and even have tables that are three layers in? aswell?
    Friday, August 10, 2018 5:21 AM

Answers

  • Hi EvanClaire,

    Thank you for posting here.

    According to your description, we are not sure what you really want. Please provide more details about the tables.

    If you want Pivot Table like the picture below, you could download the source file from the code project for reference.

    https://www.codeproject.com/Articles/22008/C-Pivot-Table

    If you want to do something like phone book, you could download the source file from the link below.

    https://www.codeproject.com/Articles/38246/Phone-Book-in-C

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 13, 2018 3:19 AM
  • Hi Evan,

    You could look into the sample in this repository and use this concept it has nested table inside a table.

    Repo: https://github.com/ThePiranha/StructureDataTable_CSharp

    table


    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Monday, August 13, 2018 2:22 PM

All replies

  • Hello,

     Think of the table layers like a Telephone book. You have Book class that contain

    one or more Page class. Each Page Class contains one or more Entry Class. Each

    Entry class contains the following object data types as strings;

     Persons Name,  Street Address,  City,  State, Zip and telephone number

     

     With the above data logic in mind, we have a clear understanding of the elements

    and the hierarchy layout. 

     

      Most here will not post code without some effort from you.  So, please try to figure

    the next steps. Or provide work in progress that allows us to better understand the

    project with input and output requirements.

     Hope this helps :)

    Friday, August 10, 2018 7:43 AM
  • This sounds like a UI table structure you're setting up. Or are you talking about nested arrays? Please clarify.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, August 10, 2018 2:09 PM
  • Hi EvanClaire,

    Thank you for posting here.

    According to your description, we are not sure what you really want. Please provide more details about the tables.

    If you want Pivot Table like the picture below, you could download the source file from the code project for reference.

    https://www.codeproject.com/Articles/22008/C-Pivot-Table

    If you want to do something like phone book, you could download the source file from the link below.

    https://www.codeproject.com/Articles/38246/Phone-Book-in-C

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 13, 2018 3:19 AM
  • Hi Evan,

    You could look into the sample in this repository and use this concept it has nested table inside a table.

    Repo: https://github.com/ThePiranha/StructureDataTable_CSharp

    table


    Thanks,
    Sabah Shariq

    [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click Answered "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]

    Monday, August 13, 2018 2:22 PM