Re: Data bound application infrastructure
Greg Robinson <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
And a good book, which I technical reviewed for Addison-Wesley, is "Data Binding with Windows Forms 2.0" by Brian Noyes. I have not read the book since I did my review but I recall it being very good and detailed. And, if he implemented my suggestions it will now be a great book ;-) Brian writes and speaks at our level, not way over your head. Greg Robinson Custom Data Systems, Inc. www.cds-am.net -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]]On Behalf Of Phil Sayers Sent: Thursday, June 28, 2007 8:32 AM To: [email protected] Subject: Re: [DOTNET-WINFORMS] Data bound application infrastructure relationships within the dataset will get this working for you, you may need to pass a "BindingContext" around between your forms so as currecnymanagers navigate through objects on one form, you see the same changes on another form with the same BindingContext. There should be plenty of google examples of this. If you want to get things like this working with custom objects instead of the dataset/datatable classes, these interfaces would be a good starting point. ICollection INotifyPropertyChanged IEditableList <-- for in-place grid editing IBindingList ITypedList IListSource -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]]On Behalf Of Brady Kelly Sent: Thursday, June 28, 2007 7:39 AM To: [email protected] Subject: [DOTNET-WINFORMS] Data bound application infrastructure I want to make my next Winforms app completely data bound, built around the DataSource objects etc. I've never had any problems using these features for grids etc., and only minimal issues using them for detail forms, but I need some pointers on how to marry the two. If I'm using a grid bound to a datatable, e.g. how do I transition to a detail form for the selected item when my edit command is invoked? I am willing to do the reading, I just don't know where. Too many resources I've spent too much time on only really cover the grid/list scenarios.