Forums

how to show the forign key value in the report

Last post 7/7/2009 4:23 AM by George (DevExpress). 1 replies.
Sort Posts: Previous Next
  • seco ali

    how to show the forign key value in the report

    7/4/2009 5:34 AM
    • Top 500 Contributor
    • Joined on 5/16/2007
    • Posts 55

    Hi

    i have a forign key in the table and i want to print the it's value the the related table instead of printing the forign key how?

    thanks in advance.

     

  • George (DevExpress)

    Re: how to show the forign key value in the report

    7/7/2009 4:23 AM
    • Top 25 Contributor
    • Joined on 4/15/2008
    • Posts 1,953

    Hi,

    As far as I understand your task, you need to create a master-detail report, based on the relation of these tables. You can use the following approach: How to: Create a Master-Detail Report using Detail Report Bands.

    After you create a relation between your tables (Master and Detal), so that a Master table's primary key will be linked to a foreign key of its descendant table, make sure you have set the DetailReport.DataMember property using the relation itself, rather than a Detail table's name. Hope this helps you.

    Regards,
    George (R&D, .NET Team).

    P.S. For your guaranteed official answer within 24 h, contact our Support Team at http://www.devexpress.com/Support/Center/. We are here to help address your issues.
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.