Hi!
Please look at the following xaml:
My cell template has two text boxes that should be bound with two different properties of my data source item. How do I do that?
Obviously my grid has other columns as well. The reason I want to do this and I don't want to use two different columns is that I want to save space and make my text boxes more wide. I don't mind about the vertical space being wasted that much.
Please look at the following xaml:
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Vertical"
>
<
TextBox
Text
=
"{Binding propertyA}"
/>
<
TextBox
Text
=
"{Binding propertyB}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
My cell template has two text boxes that should be bound with two different properties of my data source item. How do I do that?
Obviously my grid has other columns as well. The reason I want to do this and I don't want to use two different columns is that I want to save space and make my text boxes more wide. I don't mind about the vertical space being wasted that much.