Format Detail Records of Hierarchy

2 posts, 0 answers
  1. Todd
    Todd avatar
    25 posts
    Member since:
    Mar 2011

    Posted 16 Jun 2015 Link to this post

    I have a grid that I'm binding to a dataset. The dataset has the datarelations defined on it prior to assigning it to the grid (meaning I am not defining any relations on the grid itself). The data is displayed as I want it, with all of the details information being displayed in grids on tabs with each parent row. What I need to be able to do now is format the grids containing the detail information. How can I access those? I normally format my grids simply by using grid.columns.<whatever> and setting the properties right after I bind to my dataset. If possible I'd like to just add my detail formatting in the step as well.

     

    Thanks.

  2. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    711 posts

    Posted 18 Jun 2015 Link to this post

    Hello Todd,

    Thank you for writing.

    Since you are defining the relations in your DataSet you should be knowing the schema very well. After binding RadGridView and generating the hierarchy you can access the templates from the Templates collection. Then you can format these templates the same way as if you were working on the master level.

    I am sending you an example demonstrating how this can be achieved.

    I hope this information helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top