Ticket T937228
Visible to All Users

How to bind GridControl to an Entity Framework data source

created 4 years ago (modified 4 years ago)

[DevExpress Support Team: CLONED FROM T936665: out of memory error when saving a doc as pdf of more than 1.500pages]

how do you recommend use the EF sources with your grids?

Answers approved by DevExpress Support

created 4 years ago

Hello John,

Please refer to the following tutorial showing how to bind GridControl to an Entity Framework data source:
Tutorial: Entity Framework Data
Let me know if you have further questions.

    Show previous comments (3)
    DevExpress Support Team 4 years ago

      Hi John,

      Could you please try to replace your code with the code from my comment, so that we can be sure that the OutOfMemory exception is caused by an incorrect data binding code. Please share the results.

        already did this days ago, and seems to be the problem since i reached my 16GB of the server in few mins.
        i refactored all my code where this was taking place and memory is not rising like that any more and i pushed (at least for now) as much as we could the pdf merge to even 2.800 pages and worked. took its time (thats why i asked for a progress bar in the 3rd topic that was also like this a spin off) But so far so good no issues at all!

        we will keep this under observation and if it happens again we will open this or another ticket.

        thanks

        DevExpress Support Team 4 years ago

          Hi John,

          I'm happy to hear that everything works fine now. Please feel free to contact us if you have any further questions on this topic.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.