You don't use the designer tools for binding if you're writing your own ADO.NET code. You have to have the data source, i.e. the DataSet, available at design time if you want to bind at design time. If you're creating the DataSet at run time then you bind at run time.
Add the BindingSource and the BindingNavigator to the form in the designer and set the BindingSource property of the BindingNavigator. In code, you bind the appropriate DataTable to the BindingSource by setting the DataSource property and then bind the BindingSource to your controls, e.g.Code:myBindingSource.DataSource = myDataTable myTextBox.DataBindings.Add("Text", myBindingSource, "MyColumn")




Reply With Quote
