Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3336936
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:11:41+00:00 2026-05-18T00:11:41+00:00

I am receiving an error message "Recursive call to Automation Peer API is not

  • 0

I am receiving an error message

"Recursive call to Automation Peer API is not valid"

  • When loading a datagrid with a datatemplatecolumn containing a combobox column. The error ends up caught in our unhandled exception code. This seems to be an issue on my machine, and google has provided no source of guidance on resolving the issue. The issue appears to only occur when I am populating the comboboxes with data.

  • Populating the comboboxes (if I do not load data) works correctly, and while the error is displayed I am able to see the data properly retrieved in the background.

  • I am using a WPF datagrid where I’m using a DataGridTemplateColumn for adding a combobox inside the grid. I have the drop down list bound to an enum using an objectdataprovider.

  • In the code behind when initializing my screen I use a Linq2Sql statement to retrieve data and populate the Itemssource of the grid.

    <grid:DataGrid.Resources>
     <ObjectDataProvider
      x:Key="ChangeTypeData"
      MethodName="GetValues"
      ObjectType="{x:Type System:Enum}">
      <ObjectDataProvider.MethodParameters>
       <x:Type TypeName="namespace:ChangeType" />
      </ObjectDataProvider.MethodParameters>
     </ObjectDataProvider>     
        </grid:DataGrid.Resources>
    
     <grid:DataGrid.Columns>
     <grid:DataGridTextColumn Binding="{Binding DatapointName}" Header="Datapoint Changed" IsReadOnly="True" Width="Auto" />
     <grid:DataGridTemplateColumn Header="Change Type">
      <grid:DataGridTemplateColumn.CellTemplate>
       <DataTemplate>
        <ComboBox
         Text="{Binding Path=ChangeTypeName}"
         ItemsSource="{Binding Source={StaticResource ChangeTypeData}}"
         Name="dgcboChangeType"
    SelectionChanged="dgcboChangeType_SelectionChanged"/>
       </DataTemplate>
      </grid:DataGridTemplateColumn.CellTemplate>
</grid:DataGridTemplateColumn>
<grid:DataGrid.Columns>

Any and all guidance on solving this issue is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:11:42+00:00Added an answer on May 18, 2026 at 12:11 am

    I’ve bypassed the problem on my end by turning off Automation on the grid control. I found that the problem was unique to the WPF Toolkit control, but I was having problems transitioning to the 4.0 official release DataGrid (unrelated to this question.)

    So instead, I derive the class from the WPFToolkit and supply this override:

    protected override AutomationPeer OnCreateAutomationPeer()
    {
       return null;
    }
    

    Maybe someone can tell us if this is a good idea or not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using phoenix::bind and receiving this error message: error C2039: 'bind' : is not
I am not sure what the problem is but I keep receiving this error
I am currently receiving this error: Validation of viewstate MAC failed. If this application
In my program, I have been receiving an error when I use a command-line
I'm receiving Package Load Failure error when I open VS 2005 after I installed
When receiving a bug report or an it-doesnt-work message one of my initials questions
receiving error: PHP Notice: Undefined index: mode in /web/ee_web/include/form-modal.php on line 51 line 51
I'm using mysql_real_escape_string to escape my content but I am receiving an error in
As a follow-up to cannot-bind-to-address-after-socket-program-crashes , I was receiving this error after my program
I'm receiving feedback from a developer that The only way visual basic (6) can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.