firstname is not present in the datasource
this.tblnamesbs
.
add first name in the datasource or check the spelling of it . it will resolve ...
i tried this code,its working fine..
DataTable tblnamesbs = new DataTable();
tblnamesbs.Columns.Add("firstname", typeof(string));
tblnamesbs.Rows.Add("one");
BindingSource binding = new BindingSource();
binding.DataSource = tblnamesbs;
this.textBox1.DataBindings.Add("Text",binding,"firstname" );