Show Table Within Cell

5 posts, 1 answers
  1. Taibe
    Taibe avatar
    8 posts
    Member since:
    Jun 2012

    Posted 15 May 2012 Link to this post

    I have a need to show a table-like representation of a list of data within a cell of my gridview. The gridview is bound to a custom collection of objects and I need one cell to show codes related to the object. It should show the codes as a 3-column table (or list) with columns: ID  Code  Description. I can't use a nested gridview for this because the user should not have to expand anything in order to view the codes - they need to be visible directly in the main gridview's cell. The gridview is read-only. Is there any way I can accomplish this?

    Thanks!

    TJ
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 15 May 2012 Link to this post

    Hello, 

    You might want to look at creating a custom cell to do this. Please have a look at the documentation on custom cells here

    Hope that helps
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Taibe
    Taibe avatar
    8 posts
    Member since:
    Jun 2012

    Posted 15 May 2012 Link to this post

    Richard,

    Thank you for your reply. I think that I will need to create a custom cell. I'm thinking of using the RadListElement within the cell. Can you advise me on how to databind it to the list of codes that is a child of the object in my custom collection? My object hierarchy looks something like this:

        Order (List) - my grid is bound to the list of Orders
            Payment - each order has a Payment
                Codes (List) - each Payment has a list of Codes. I want to bind the ListElement in my custom cell to this list of Codes


    Thanks,
    Taibe
  5. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 17 May 2012 Link to this post

    Hello, 

    Please see my answer to your other post at this link
    When possible, it's best just to open one forum post on a subject which will allow Telerik to review the threads quicker. 
    I hope the answer in the other thread is useful
    Richard
  6. Taibe
    Taibe avatar
    8 posts
    Member since:
    Jun 2012

    Posted 17 May 2012 Link to this post

    Thank you, Richard. Your answer was awesome - exactly what I need to do. I'm sorry about the double posting - am a newbie to the Telerik forums.
Back to Top
UI for WinForms is Visual Studio 2017 Ready