Hi,
i found this example to change the CellTemplate. This works fine, but how do i insert a "Passwordbox"?
<
telerik:RadGridView
x:Name
=
"RadGridView"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Name}"
Header
=
"Select hobby"
/>
<
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding AvailableHobbies}"
>
<
telerik:RadComboBox.SelectionBoxTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Owner.Choices}"
/>
</
DataTemplate
>
</
telerik:RadComboBox.SelectionBoxTemplate
>
<
telerik:RadComboBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
IsChecked
=
"{Binding IsChecked, Mode=TwoWay}"
Content
=
"{Binding Description}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadComboBox.ItemTemplate
>
</
telerik:RadComboBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Choices}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
With Passwordbox:
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Passwordox
Name
=
"Password_txt"
Password
=
"{Binding Password}"
/>
</
StackPanel
>
</
DataTemplate
>
binding does not work, but why? A simple Textbox ist working fine with this Binding!
Thanks Best Regards
Rene