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
310
[Urgent] FieldSettings and DataSource
posted

Hello,

Why does it not allow to use both FieldSetting and DataSource at the same time? I'm getting this error ""Can't set the DataSource on a DataPresenter that has items added explicitly through the DataItems Collection "" Any Idea?

        <igDP:XamDataGrid x:Name="dgXamDataGrid"

                                  DataSource="{Binding Entities}"

                                 >

 <igDP:FieldSettings>

(We will put the template here.. but not working)

 </igDP:FieldSettings>

            <igDP:XamDataGrid.FieldLayoutSettings>

                <igDP:FieldLayoutSettings AutoGenerateFields="True"/>

            </igDP:XamDataGrid.FieldLayoutSettings>

        </igDP:XamDataGrid>


Parents
  • 2320
    posted

    I believe that error is actually stating that you've manually added items to your datagrid somewhere (perhaps in code behind) but you're also binding your datagrid at the same time. You can't do that. You have to choose one or the other.

Reply Children
No Data