Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Cannot add the control to the design surface ....
posted

Hi all,

have a strange thing:
I created a table adapter on a SQL table. All settings in the table adapter seem to be ok.
The preview works fine.

If I'm now drag and drop the XamDataGrid into the WPF, the message appears: "Cannot add the control to the design surface or bind to the control because the type '<DataSourceDatabase>' cannot be resolved."

It doesn't work in WPF and WEB, but it does in Forms.

Any idea?

Parents
No Data
Reply
  • 1500
    Offline posted

    Hello,

    According to the provided pictures you are trying to drag datasoure to the designer and not XamDataGrid, which is something that I believe will work only in winforms.

    In order to use XamDataGrid, you have to drag the grid first, then bind it to the datasource. You can check how to do the binding in our documentation here:

    https://es.infragistics.com/help/wpf/xamdatagrid-accessing-data

    If this is not the case, can you provide more information how to recreate this on our side.

    Sincerely,
    Tihomir Tonev
    Associate Software Developer
    Infragistics

Children