Hii, everybody,
when click button to display data in datagridview and textboxes data show with no problem ,but when click again this message appear and project need to close
this error message :
this causes two bindings in the collection to bind to the same property.
parameter name:binding.
this is my code :
if (this.datc.fnGetDataConnection())
{
this.dataGrid1.ReadOnly = true;
this.dataGrid1.DataSource = datc.dSet.Tables["student"];
fnGetDataBindingForTextBoxes();
fnSetCurrencyManager();
fnDisplayRecordNumbers();
}
else
{
MessageBox.Show("Connection failed...");
Application.Exit();
}
}