This question is locked. New answers and comments are not allowed.
How do I get a TextBox in a DataTemplate to 100% of the column width?
This ends up here: http://twitpic.com/9gno9l
But I want the TextBox not just the width of the current text, it should take the width of the column. How?
Best regards
Sven
<
telerik:GridViewDataColumn
Header
=
"Enter SPGR"
SortMemberPath
=
"SPGR"
DataMemberBinding
=
"{Binding SPGR}"
HeaderCellStyle
=
"{StaticResource WriteGridViewHeaderCellStyle}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding SPGR, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Center"
HorizontalContentAlignment
=
"Stretch"
IsReadOnly
=
"{Binding IsProcessed}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
This ends up here: http://twitpic.com/9gno9l
But I want the TextBox not just the width of the current text, it should take the width of the column. How?
Best regards
Sven