Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Creating Reports for Xceed grid which is having master detail

Sort Posts: Previous Next
  •  06-11-2008, 7:25 AM Post no. 12849

    Creating Reports for Xceed grid which is having master detail

    Hi,

    I'm trying to create report styles to suit my needs, but it seems there is no report elements that distinguish mastergrid and detailgrid elements. e.g When creating a new report style, the element Column Headers applies to both(master and detail grid) headers in the report, therefore I can't set diferent column header colours for master and detail grid.

    Also, Is it possible to set the detail grid columns' width ? At this time, I am doing this in code, but that wouldn't be a good solution as the user might want to define their own printing preferences.

    Once master and detail grid seem to be managed by the same elements, I am unable to set page breaks and keepTogether properties, therefore my report just does not look good at this time. I thought Groups elements could cater for that, but it doesn't work in this case.

    Please let me know of a good solution for these issues.

    Thanks,

    Pravi

  •  06-12-2008, 4:30 PM Post no. 12923 in reply to 12849

    Re: Creating Reports for Xceed grid which is having master detail

    Like you wrote, the report styles of detail grids is specified with code. For example:

    Xceed.Grid.DetailGrid detailGrid = new Xceed.Grid.DetailGrid();

    detailGrid.Columns.Add( new Xceed.Grid.Column( "Value", typeof( string ) ) );

    this.gridControl1.DetailGridTemplates.Add( detailGrid );

    detailGrid.ReportStyle.BackColor = Color.Pink;

    detailGrid.Columns[ 0 ].ReportStyle.BackColor = Color.Blue;

    and so forth.

    The CustomizeReportStyleForm class that is supplied with the component is meant to be a starting point. It does not cover master-detail report style in a generic way because many of our clients use master-detail grids in very different ways. That made it impossible for us to find a common user-interface for them.

    The full source code of both the GenerateReportForm and CustomizeReportStyleForm classes are provided with the component. You are free to modify them to provide a user-interface to specify report styles for your detail grids.

    You will find the source code here :

    C:\Program Files\Xceed Components\Xceed Grid for .NET <version>

     


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  06-13-2008, 6:12 AM Post no. 12930 in reply to 12923

    Re: Creating Reports for Xceed grid which is having master detail

     Hi Andre,

    Thanks for ur reply.

    but i want to add another linklable like "Add sub-group level" and from that click event i want to generate report styles for sub-detail grid levels .

     I will be very thankfull if i get any solution for this.

    Thanks,

    Pravi.

  •  06-16-2008, 4:41 PM Post no. 13002 in reply to 12930

    Re: Creating Reports for Xceed grid which is having master detail

    One way you could do it is through the Xceed.Grid.Reporting.ReportStyleSheet.Grid.DetailGrids object, which controls the report styles of detail grid templates (look at the documentation of DetailGrids for complete information).

     

    To get what you want, you will need to modify the CustomizeReportStyleForm class to add user-interface elements that get and set the various GridReportStyle properties that the DetailGrids collection controls.

     

    Like we said before, the CustomizeReportStyleForm code is yours to play with to add functionality.


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  06-17-2008, 6:37 AM Post no. 13018 in reply to 13002

    Re: Creating Reports for Xceed grid which is having master detail

    Thanks Andre for ur suggestions.

    Atlast I got what I want,

    Once again thanks for ur support.

  •  07-02-2008, 1:53 AM Post no. 13360 in reply to 13002

    Re: Creating Reports for Xceed grid which is having master detail

    Hi Andre,

    Now i have customized the code in CustomizeReportStyleForm and am geeting desired result, even i have customized Grnerate report form code to make detail grids columns visible to edit,

    Now I am having another problem,It is taking long time to load Generate Report form screen.

    Is there any solution for that.

    Kindly Reply me.

    Thanks,

    Pravi.

  •  07-03-2008, 3:33 PM Post no. 13416 in reply to 13360

    Re: Creating Reports for Xceed grid which is having master detail

    It is difficult to tell.  Most likely, the detail grids have too many rows, and it takes time to load all those rows with the specific ReportStyle properties.  There is probably not much to do about this.


    André
    Software Developer and Tech Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.