473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to unbind a textbox

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
2 2514
nateraaaa
663 Expert 512MB
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
7,872 Expert 4TB
It says in the help to bind it to null.
So mycontrol.DataSource=null;
will unbind it.
Jun 22 '07 #3

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

Similar topics

3
by: Askari | last post by:
Hi, Do I can unbind the initial bind on basic widget? (ex.: the basic widget Text have the bind "<Control-a>" for the return to the first caracter of the line; but me I don't want this!) I try ...
1
by: gj | last post by:
How do I unbind a textbox in C#. Thanks
4
by: Gromit | last post by:
Hi, Apologies for the cross posting, but I sent this into the web controls board 10 days ago and unluckily for me no-one picked it up. I'd really appreciate any ideas, because I'm quite stuck on...
5
by: Grant Merwitz | last post by:
How do you unbind one of these web controls. I have a drop down list that based on another drop down list selection will be databouns private void BindDD2(int id) { DD2.DataSource =...
2
by: KC | last post by:
I want to remove or "unbind" a Datatable from a datagrid. Would I say, dt.Container.Dispose() where dt is the DataTable? --- Ken
0
by: Gaetan | last post by:
on a test web page, I have two DropDownList fields. The data source for the second DDL field depends on the value selected in the first DDL. I want a Reset button that will re-initialize the DDL...
1
by: psujkov | last post by:
Hi everybody, Is it possible in any way to unbind function, binded before with boost::bind ? void f(int a, int b) { return a + b; }
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
1
BeemerBiker
by: BeemerBiker | last post by:
I added a temporary column to a database and want to delete it after I am finished with it. However, I cannot remove the column while it is still bound to a variable. I tried $sth->finish() but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.