Removing Databinding
C#
3
Posts
2
Posters
0
Views
1
Watching
-
I have binded a textbox control with database column, I want to remove that binding in runtime. How to write the code for remove function?
-
Try this
textBox1.DataBindings.Remove(textBox1.DataBindings["Text"]);
(I am not pretty sure about this...) or you can clear all the databindings like thisthis.textBox1.DataBindings.Clear();
*jaans