Winforms binding -> non-IListSource to a ListBox
- From: "Keith Patrick" <richard_keith_patrick@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 12:06:42 -0600
I'm trying to convert a WPF app over to WinForms 1.1, but I ran into a bit
of a problem: WPF lets applications define a DataContext plus a path to the
actual data. WF seems to do something similar, but without the robust
pathing. What I want to do is pass an non-list and a non-listsource to a
bunch of listboxes as a datasource, and then tell each listbox that they
should bind to "datasource.ChildCollection1", "datasource.ChildCollection2",
etc.. The thing is, though, the listboxes MUST have a reference back to the
original non-list owner (because of some post-edit processing I do).
However, WinForms doesn't let me bind to a non-list or listsource, but I
can't find a DataBinding that will work such that I can specify that extra
level of indirection down to the collection property. Is this even possible
with WinForms?
.
- Follow-Ups:
- Re: Winforms binding -> non-IListSource to a ListBox
- From: Kevin Spencer
- Re: Winforms binding -> non-IListSource to a ListBox
- Prev by Date: StausBar not in toolbox Form Design
- Next by Date: Re: DataGrid Hierarchical Data view display in Windows Form
- Previous by thread: StausBar not in toolbox Form Design
- Next by thread: Re: Winforms binding -> non-IListSource to a ListBox
- Index(es):