how to clear the bindingcontext of a form

how to clear the bindingcontext of a form

Post by sileniu » Fri, 13 May 2005 21:48:31


I use databinding to bind property from a class to various control on the
form.

when i change the class, i remove all the databinding but the datasource
remain in the bindingcontext, is there a way to clear the bnidingcontext?

thanks you
 
 
 

how to clear the bindingcontext of a form

Post by Pavel KOHO » Thu, 19 May 2005 21:50:17

Form.BindingContext = new BindingContext();


"silenius" < XXXX@XXXXX.COM > pe v diskusn pspku

 
 
 

how to clear the bindingcontext of a form

Post by sileniu » Thu, 19 May 2005 23:54:21

when i read it first . I thought "it's a joke"

when i tried it. I said "I am so stupid"

Thanks you.


% XXXX@XXXXX.COM ...