Can I drop a PersistentRepository somewhere (the main form for example) and then link that with a GridControl via its ExternalRepository property in design time while the GridControl is in a different form from the PersistentRepository owner form? I try to do it like that but when I drop down the list in ExternalRepository it only shows (None). I don't want to have one PersistentRepository for each form, because I have many common repository items that are common throughout the whole application. Is there another component I should use?
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.
Hello Petros,
Sorry, but the .Net architecture does't allow to create global static object instances at design time. You cannot access to the PersistentRepository of the one form from another because an instance of the form does not exist at design time. So, you can access the PersistentRepository object from another form at runtime only.
Thank you,
Paul