473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

DataMember property 'RELATION_Name_Here' cannot be found on the DataSource

Echooff3
I'm gonna pull my freakin hair out!!!
This is the second time I had .Net lock me out of one of my forms with this error.

I have a relational dataset and on a particular form there is the master table view and all the relational children views. After a while the IDE appears to not even be checking the structure of the dataset and I get a warning saying that the datamember cant be found on the data source.

When I go into the dataset designer it's there plain as day and spelled exactly right.

snippet:

the warning:
Warning DataMember property 'FK_JACKET_Notes_JACKET_Header' cannot be found on the DataSource.
Expand|Select|Wrap|Line Numbers
  1.     '
  2.         'FKJACKETNotesJACKETHeaderBindingSource
  3.         '
  4.         Me.FKJACKETNotesJACKETHeaderBindingSource.DataMember = "FK_JACKET_Notes_JACKET_Header"
  5.         Me.FKJACKETNotesJACKETHeaderBindingSource.DataSource = Me.JacketBS    
And it's in the dataset designer code...
Expand|Select|Wrap|Line Numbers
  1. Me.relationFK_JACKET_Notes_JACKET_Header = New Global.System.Data.DataRelation("FK_JACKET_Notes_JACKET_Header", New Global.System.Data.DataColumn() {Me.tableJACKET_Header.IDColumn}, New Global.System.Data.DataColumn() {Me.tableJACKET_Notes.FK_JIDColumn}, false)
  2.         Me.Relations.Add(Me.relationFK_JACKET_Notes_JACKET_Header)
Sep 27 '07 #1
1 5511
Ok I figured it out. Turns out that the IDE generated code somehow lost the datasource in the master Bindingsource. Hence why it could not find the relations.
So I had to dig throught and add the Master table to the Master bindingsource's datasource. The only problem then what I had to go through the forms and reapply the bindings to my textboxes and comboboxes.
Sep 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: John Spiegel | last post by:
Hi all, I think I've stared at it until it's made me stupid(er?). What am I missing about setting the list of the dropdown to display data pulled from a table? //......
11
by: Marina | last post by:
Hi, I have a text control bound to a column that is of type Decimal. I am doing the validation myself to see if the user typed in something invalid, calling CancelCurrentEdit and cancelling the...
4
by: Jason | last post by:
Here is an odd issue. I am trying to shed some light on why this is causing a problem. I have an ArrayList. I am binding it to a ListBox control with has its Sort property set to True. If the...
0
by: Johann Blake | last post by:
I have a form with textboxes that are bound to a dataset. The dataset contains two tables and some of the textboxes use data from one table while other textboxes use data from the other table. I...
3
by: Alvaro E. Gonzalez V. | last post by:
Hello!!! I'm building a control that in a property assign a Dataset which they are initialized and another property Like DataMember. Similar as it happens to the DataSource property of a...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
5
by: Ken Varn | last post by:
I have just started using VS.NET 2005 after using VS.NET 2003. One of the things that I noticed is that in ASP.NET, the DataSource property for TextBoxes and other web controls is no longer...
1
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
In the Visual Studio 2005 designer, I have a grid, a binding source, and a data set which contains two data tables. In the Designer, I make the settings below. If I set the DataMember for the...
0
by: mzwilli | last post by:
Hi, I'm trying to create browsable DataSource and DataMember properties on a user control. The idea is to create a descendent object, place a dataset then specify the DataSource (DataSet) and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.