Setting Textbox in DataGrid

  • Thread starter Thread starter Mervin Williams
  • Start date Start date
M

Mervin Williams

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
 
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.
 
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
 
Back
Top