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

  • SEARCH
  • Home
  • 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 6321467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:09:16+00:00 2026-05-24T16:09:16+00:00

Is it possible to update data in the datagrid without having to bind it

  • 0

Is it possible to update data in the datagrid without having to bind it to a particular object and still enjoy the benifits of a “two way” data binding? In this case the type of object to be binded is decided at runtime based on user input.

Some more clarity:

Actually I am using a multi threaded application and I need to update data in UI from another thread. For this purpose I share a reference for an Observable Collection object and bind(through ItemsSource) the same to the data grid. Now, whenever the thread updates the data, it calls a specific function in the UI thread asking it to refresh the datagrid. The problem arises when I try to modify some value in the grid so that it is sent back to the thread that is running in parallel. It throws an exception “‘DeferRefresh’ is not allowed during an AddNew or EditItem transaction.”

  • 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-24T16:09:17+00:00Added an answer on May 24, 2026 at 4:09 pm

    With a DataGridView you can change the datasource at runtime and still enjoy two-way binding… Just set the DataSource to null first.

    If for some reason you can’t do that, you might consider object composition: i.e. binding your grid to an intermediate object which simply holds a variable for the actual object you’re ‘binding’ at runtime, and create wrappers for the implementation (IList, IListSource, IBindingList or IBindingListView).

    Unless I’ve missed something?

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

Sidebar

Related Questions

Is it possible to use object binding to bind a windows form control to
Is it possible to update IIS on Windows XP from 5.1 to 6? If
Is it possible to update more than one local variable in a single select?
Alternatively is it possible to manually update the built in progress bar? Basically I
Is it possible to run an UPDATE command on mysql 5.0 with a sub
[UPDATE: MS SQL Server 2005] Hi is it possible to select a bunch of
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
One update: I tried using the SummaryRow on the datagrid for its basic functionalities
Is there any way to have a datagrid listen to the database and automatically
I am using MongoDB with C# driver. I managed to add/delete/update data from collections,

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.