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 4094580
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:45:46+00:00 2026-05-20T19:45:46+00:00

In the project I’m currently working on, I don’t have plain CLR objects to

  • 0

In the project I’m currently working on, I don’t have plain CLR objects to bind with my datagrid. Normally, I would use an ObservableCollection<MyObject>, but now I can’t and instead I must use a custom object (which behaves like a DataTable but with custom logic).

My question is : How can I make a proxy/adapter object that will “translate” every binding operations on items in cells of my datagrid to my custom logic object?

Remember that:

  • My object is not a Collection, so I don’t really have Items.
  • The “columns” of the virtual items might change.
  • Somewhere in the application I might change one value in that object and that the datagrid must reflect changes

Right now we are recreating a DataTable from the custom object to get his DataView to display in a datagrid and we intercept editing commands with events (which are ugly) and then reload everything from scratch each time when change a cell value.

I searched for hints about how to accomplish this but the things I found are :

  • IItemProperties interface (Might be interesting to have dynamic columns but I don’t have a collection)
  • DataSourceProvider class (It appears to be a wrapper for ItemsSource, but I don’t see what I have to return in the Data property)
  • INotifyPropertyChanged interface (To tell a property changed, but I don’t have items or at least items don’t have properties)
  • ICustomTypeDescriptor interface (Ok but once I returned the properties with GetProperties() how the datagrid will try to modify the inexistent property?)

As you can see, it’s confusing about choosing a way to implement a good proxy.

  • 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-20T19:45:47+00:00Added an answer on May 20, 2026 at 7:45 pm

    Finally I found a solution, I used the second approach in this web site : and made an object that inherits from IBindingList and ITypedList to fake that the item is a list, I used also ICustomTypeDescriptor on each fake rows and called the master table object.

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

Sidebar

Related Questions

A project I'm working on at the moment involves refactoring a C# Com Object
My project is currently using a svn repository which gains several hundred new revisions
The project is ASP.NET 2.0, I have never been able to reproduce this myself,
The project I'm working is using n-tier architecture. Our layers are as follows: Data
Project Euler and other coding contests often have a maximum time to run or
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project is C#. So I have a bunch of multithreaded code that is designed
Project#1 has some interfaces and classes that project#2 references. Now I want to use
Project Darkstar was the topic of the monthly JavaSIG meeting down at the Google
Every project invariably needs some type of reporting functionality. From a foreach loop in

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.