DataBinding problem

U

Uldis

I have form with controls bound to the strong typed dataset. If I load
record (and related tables) from SQL server data bindings works well.
I can see data in forms controls. If I add new records with a:
MyDataSet.NewDataTableRow() and add them - all controls are empty (but
there should be some default values etc.. If I tell control to use
forms BindingContext, I see correct data:
mycontrol.BindingContext = MyForm.BindingContext.
There are no tab pages on the form, just plain form with a controls. I
do not want to assign all the controls parent Bindingcontext manually.
Any ideas what is the problem?

Uldis
 
U

Uldis

Uups, found my mistake - there shuldn't be any Nulls when column is
bound to checkbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top