BindingSource, Dataset and BindingNavigator, problem: DataMember property 'RECORD' can

Hey, i m a newbie in vs and i am trying to develop a small application. I m loading an XML file to a dataset and then i m trying to view the contents.

Code:

***
this.dataSet1 = new System.Data.DataSet();
***
this.bindingNavigator1.BindingSource = this.bindingSource1;
***
this.bindingSource1.DataSource = this.dataSet1;
this.bindingSource1.DataMember = "RECORD";
this.bindingSource1.Position = 0;
this.dataSet1.DataSetName = "MyDataBase";
this.dataSet1.ReadXml(@"***\TheData.xml");

so far it runs fine and the move buttons from the bindingnavigator are moving from 1-3 (i have 3 records in the xml file)

The problem occured when i added this line:

this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",this.bindingSource1,"RECORD.LASTNAME",true));

It thows this exception"DataMember property 'RECORD' cannot be found on the DataSource."

Does anyone know whats causing the exception?
Thanx in advance!

[1180 byte] By [lotbsis] at [2007-12-25]
# 1

You are binding the textbox to the bindingsource whos datasource is the Record table. You should only need LastName.



this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",this.bindingSource1,"LASTNAME",true));

KenTucker at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2
Omg yes! I just solved that! Thanx for replying!
lotbsis at 2007-10-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...