Jesse Johnston
{ ironic tagline here }

What's Interesting?

Monday, 26 February 2007 23:44 by jesse

What would you like to know about data binding, DataGridView, or other .NET goodness?

Also, is there any interest in a version of ObjectListView for WPF?

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList
Categories:  
Actions:   E-mail | del.icio.us | Permalink | Comments (4) | Comment RSSRSS comment feed

Comments

February 27. 2007 11:06

Liang

Thank you Jesse for this excellent component! I am using Nhibernate in most of my latest projects.
There always an issue to bind domain object to the UI. ObjectListView helps a lot for supporting databinding
on my UI. I do like to see a version for WPF.

Excellent work, Jesse! Very appreciate!

Liang

February 27. 2007 13:09

Jesse

Thanks, Liang!  I'm still learning WPF, so it may be a little while for the WPF version of ObjectListView.  Smile

Jesse

February 28. 2007 08:52

vish

Hi Jesse,

I was wondering if you delve into some depth on data binding to cutom objects in your blog. I am currently using databinding techniques to bind my business object collection to a listbox on the left pane and a details view of the selected object on the right pane. I also have a navigator control on the form.

The problem i am facing is that databinding automatically updates my object when the user changes the values. I want to be able to validate the changes data before updating my object. And the validation requires that i have all the new values to be able to validate the form i.e. the validity of the value in textbox1 depends on the values in textbox2 and conmbobox1. I am not able to find any way to do this currently. Most examples use a datatable which has a RejectChanges() function to discard the user changes but my object does not currently have any such functions. I tried creating something like a wrapper class that will fake or simulate the properties on the wrapped object using ITypedList, but that did not work either. I could send you the code if you want to take a look at it.

Thank You,
Vish

vish

February 28. 2007 10:20

Jesse

Hi, Vish.  Excellent suggestion - I'll do that.  If you'd like to send me the code, I could use that as the basis for the blog discussion.

Cheers,
Jesse

Jesse

Comments are closed