IsBinding is false in DataBinding procedure...

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.
 

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