G
Guest
Hi all,
I have a strange problem. I am having a user control which is placed in a
tab page. I bound some Text boxes and Labels to some datasource. Some times
these databindings work properly and I am able to get and set data to
DataBase. But some times( Take outof 25 hits to tab page) binding is not
done. The design time variable are displaying instead of values from
DataView. And if checked the 'IsBinding' property of that controls it is
false. It happens only some times not always. What can be the problem? what
can trigger the 'IsBinding' property to false.
Please help me.
Here is the code:
txtMarks.DataBindings.Add(new Binding(dvSample,"Marks"));
lblName.DataBindings.Add(new Binding(dvSample,"Name"));
The above two controls are created dynamically in the form after that
binding is done.
Thanks,
Nagabhushan.
I have a strange problem. I am having a user control which is placed in a
tab page. I bound some Text boxes and Labels to some datasource. Some times
these databindings work properly and I am able to get and set data to
DataBase. But some times( Take outof 25 hits to tab page) binding is not
done. The design time variable are displaying instead of values from
DataView. And if checked the 'IsBinding' property of that controls it is
false. It happens only some times not always. What can be the problem? what
can trigger the 'IsBinding' property to false.
Please help me.
Here is the code:
txtMarks.DataBindings.Add(new Binding(dvSample,"Marks"));
lblName.DataBindings.Add(new Binding(dvSample,"Name"));
The above two controls are created dynamically in the form after that
binding is done.
Thanks,
Nagabhushan.