By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,493 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,493 IT Pros & Developers. It's quick & easy.

how to unbind a textbox

P: 2
I have a textbox which is bound to a datasource ... i am trying to unbind it and rebind it down the code ... I was wondering if anyone could give me a clue on how to unbind it .... a worked out example would be great


Thanks in advance
Jun 22 '07 #1
Share this Question
Share on Google+
2 Replies


nateraaaa
Expert 100+
P: 663
I have a textbox which is bound to a datasource ... i am trying to unbind it and rebind it down the code ... I was wondering if anyone could give me a clue on how to unbind it .... a worked out example would be great


Thanks in advance
Not really sure what you mean by unbind. Are you saying you want to clear the textbox at some point then after some event add code to the textbox using your datasource? Please give more information on what you are trying to do.

Nathan
Jun 22 '07 #2

Plater
Expert 5K+
P: 7,872
It says in the help to bind it to null.
So mycontrol.DataSource=null;
will unbind it.
Jun 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.