Hi,
Using VS .Net 2005 RC, C#
I have a Windows Form "formMaster" containing a BindingSource "bs".
When creating an inherited form from "formMaster" where I drop 2 browsers where 1 is the master and the other the detail everything runs fine. The detail-browser show automatically the childdata of the masterbrowser selected record. So far so good.
But!
When changing
- the DataSource property of the DataGridView of the masterbrowser and
- the DataSource property of the BindingSource of the detailbrowser to
the BindingSource "bs" created in the formMaster then ... the program compiles & runs ok, but I receive (after compiling) an error "DataMember property 'FK_Index' cannot be found on the DataSource" and the form isn't viewable anymore at design time. However I still can run the program without any error.
The same form, but without using a detailbrowser works just fine!
I had the same problem in Beta2.
Is this a bug Is there a solution or a work around
THx.
Original error message in VS:
| One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. | |
| at System.Windows.Forms.ListBindingHelper.GetList(Object dataSource, String dataMember) at System.Windows.Forms.BindingSource.ResetList() at System.Windows.Forms.BindingSource.EnsureInnerList() at System.Windows.Forms.BindingSource.System.ComponentModel.ISupportInitialize.EndInit() | |

DataMember property 'FK_Index' cannot be found on the DataSource
AGuther
Instead of changing the datasource property of the DataGridView (for the master) and the datasource property of the BindingSource (for the detail) I assigned the BindingSource "bs" to the original binding source of the DataGridView and it runs also AND no errors anymore in the VS Development Environment. My form is visible again!
Thx anyway.