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

Setting Textbox in DataGrid

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.