I am new to DataObjects.NET, and have been working/playing with code for last week. I'm having problems with data binding in a WinForm app (C# 3.5), and have not been able to find an answer to this question.

I want to be able to return a list of entities, and bind to a DataGrid. The grid is editable, and after the user has edited 1 or more entities, I need to be able to SAVE those entities back to the db. My immediate issues are:

  1. If I bind a List<something> to a data grid, it takes forever (only 100 records), and then I see a bunch of columns for things I don't need, that are not part of the underlying table, but part of the DataObjects.Net entity structure.

  2. How do instruct DataObjects.NET to save the items that have been changed?

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by paulbrower.

asked Aug 02 '10 at 11:48

Editor's gravatar image


edited Sep 03 '10 at 16:13

Alex%20Yakunin's gravatar image

Alex Yakunin

One Answer:

DataObjects.Net doesn't support WindowsForms data binding - we support WPF events (INotifyXxxChanged) only.

Concerning the performance: likely, you use regular Session, but in this case you must use DisconnectedState as well to ensure everything is cached on the client. There is a chapter in Manual about this.

answered Aug 02 '10 at 20:53

Alex%20Yakunin's gravatar image

Alex Yakunin


1) WindowsForms data binding isn't supported, try using WPF, if possible. + Use DisconnectedState. 2) Use DisconnectedState.ApplyChanges.

(Aug 02 '10 at 20:53) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA