473,508 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TextChanged within Datagrid

I posted a question earlier asking whether you can assign information
to a textbox within a datagrid on PageLoad? If so, how?
Have another question, is it possible to have a TEXTCHANGED method
for a textbox within the datagrid. Once again, how?

I am trying to figure out whether I should continue on searching on
how to do thing in a datagrid or just switch to something else. I
can't seem to find solutions for those quations.

THANKS
Nov 22 '05 #1
2 2206
Anna
I'm having to infer a few things from your request, but I believe the solution will be found using Inheritance. You need to create a CustomTextBox that has a public event TextChanged that is invoked when appropriate. Then add the custom textbox to the datagrid. Using the ItemDataBound event of the datagrid you can then dynamically assign a handler for this event
Since you refer to "pageLoad" rather than "formLoad" I am guessing you are trying to do this in ASP.NET, this presents the seperate problem of roundtrips to the server on every textchanged event. So you might want to rethink your strategy a bit..

HTH

Cos Callis, MCAD
Nov 22 '05 #2
Anna
I'm having to infer a few things from your request, but I believe the solution will be found using Inheritance. You need to create a CustomTextBox that has a public event TextChanged that is invoked when appropriate. Then add the custom textbox to the datagrid. Using the ItemDataBound event of the datagrid you can then dynamically assign a handler for this event
Since you refer to "pageLoad" rather than "formLoad" I am guessing you are trying to do this in ASP.NET, this presents the seperate problem of roundtrips to the server on every textchanged event. So you might want to rethink your strategy a bit..

HTH

Cos Callis, MCAD
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2915
by: Fabrício de Novaes Kucinskis | last post by:
Hi all, I have a combobox control, in wich I put an autocomplete code. This code is in the TextChanged event, but when this event fires, the Text property isn't updated yet. For example, if...
2
454
by: anna | last post by:
I posted a question earlier asking whether you can assign information to a textbox within a datagrid on PageLoad? If so, how? Have another question, is it possible to have a TEXTCHANGED method...
3
664
by: Bruce HS | last post by:
I do an autopostback from a text box in a datagrid template. How can I capture the event in the code behind? Handles DataGrid1.textboxname.TextChanged doesn't work, and I don't see any DataGrid...
4
7074
by: Francesco | last post by:
Hi all, I am trying to make a UserControl with a TextBox in it. I have to publish the TextChanged event of the inner TextBox, but I have some trouble. If I declare : public event EventHandler...
1
1159
by: Jim | last post by:
I have a class that inherits from the DataGrid class. I want to know when the datasource of my datagrid has changed, but want to execute a function within my extended datagrid class. For...
1
4485
by: Samuel Chan | last post by:
I used the textchanged event of textbox and set the autopostback property to true. The textchanged event should fire when the content of the textbox is changed and user tab out of the textbox...
2
3002
by: gaurav | last post by:
hi, I have a problem, How do i use TextChanged Event by clicking on Button. When i changed the text in text box and moving the focus from there then it is working but i have one calender popup...
1
1924
by: Stan Sainte-Rose | last post by:
Hi, I have a problem with my textchanged and leave events I have a script in the leave event of my textbox and also in my textchanged. The script in my textchanged adds and displays a tabpage....
4
29795
by: Jason Huang | last post by:
Hi, In my C# Windows form MyForm I have some TextBoxes. In these TextBoxes, we have to detect if the TextChanged event occurs, if there're changes in these TextBoxes, it will ask if we want to...
1
3418
by: PromisedOyster | last post by:
1. I have a series of RequiredFieldValidators that need to be be enabled/disabled depending on what the user types into various text boxes. Can I do this using the Enabled property of the...
0
7225
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
7123
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
7383
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...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.