473,396 Members | 2,004 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,396 software developers and data experts.

Setting Textbox in DataGrid

I am trying to set the text property of one of my labels in a data grid to
the value of a text box in the same datagrid.

Please help!

Mervin Williams
Nov 18 '05 #1
2 1260
more info about what is required will be useful.
for now.. check if using Item.FindControl to access both of these items and
set the value appropriately.

Av.
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
I am trying to set the text property of one of my labels in a data grid to
the value of a text box in the same datagrid.

Please help!

Mervin Williams

Nov 18 '05 #2
Here are the details: My datagrid contains a template column for a Phone
number. In the EditItemTemplate and FooterTemplate I have placed a MaskBox,
which is an input mask control (from AssistedSolutions) that allows a phone
number mask to be displayed. This works well for the EditItemTemplate and
FooterTemplate as they are both input controls like the mask box, but not so
well for the label control which is not an input control.

Ultimately, I want to display the entered data along with the phone number
mask in the ItemTemplate, which uses a label to display the corresponding
value. So, I have placed a mask control beside the label in the
ItemTemplate, and set it to invisible. What I want to do is have the label
control's text property set to the text property of the mask control, so
that the item's appearance is consistent whether the datagrid is in view,
edit, or insert modes.

I hope this sheds more light on the problem.

Thanks in advance,

Mervin Williams

"avnrao" <av*@newsgroups.com> wrote in message
news:ep**************@TK2MSFTNGP12.phx.gbl...
more info about what is required will be useful.
for now.. check if using Item.FindControl to access both of these items and set the value appropriately.

Av.
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
I am trying to set the text property of one of my labels in a data grid to the value of a text box in the same datagrid.

Please help!

Mervin Williams


Nov 18 '05 #3

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

Similar topics

0
by: ED M. | last post by:
Hello all...I'm new to the board. I have a problem that I hope someone here might be able to solve for me. I am doing some clientside validation using Javascript. The text I am testing is...
0
by: Andrea Trevisan | last post by:
That's a revival of a known thing I suppose.I hope it's useful. My problem was: I want to have a DataGrid with two Template columns: first with TextBox,second with Button.I want to fire an event...
3
by: Nic | last post by:
Hey, I have an ASP-application. In the ASPX I have an <asp:dropdownlist ..>. Now when I leave this control I want to initialisize some other fields. In window forms we uses the onleave event but...
7
by: I am Sam | last post by:
I have a DataGrid that is passing information to a stored procedure properly but the parameters aren't being casted properly. I was woundering if anyone can tell me how I should properly cast the...
1
by: tshad | last post by:
I am trying to find the best way to set up RadioButtons, CheckBoxes, and textboxes on the fly. What I am doing is putting on a page questions and answers that the user has defined in his file. ...
2
by: AA | last post by:
Do anyone know how to refresh the datagrid without setting datasource to nothing and initialize the grid again? My case is that I have form consisting from two part. The upper part is a datagrid...
8
by: Richard L Rosenheim | last post by:
I have a dataset containing a parent table related to a child table. The child table contains an ID field (which is configured as autonumber in the datatable), the ID of the parent, plus some...
0
by: Rocky | last post by:
Dear ALL, I am facing a bit problem in DATAGRID. so may be you guys can help me out. Actually on a DataGrid I am having following controls: 1) 2 DropDown Menu 2) 1 Text Box 3) 1 ADD Button 4)...
2
by: rn5a | last post by:
A DataGrid displays 8 columns - ProductID, ProductName, Description, Price, Quantity, Sub-Total, Edit & Delete. *Edit* is a EditCommandColumn, *Delete* is a ButtonColumn & *Quantity* is a...
3
by: rn5a | last post by:
A DataGrid has a BoundColumn, an EditCommandColumn & a few TemplateColumns. When the text in the EditCommandColumn within any of the DataGridItems is clicked, the corresponding BoundColumn changes...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.