How to define PasswordBox type column in DataGrid?
-
21-08-2019 - |
Question
How to make a column in WPFToolkit:DataGrid PasswordBox like?
Solution 2
Made it through DataGridTemplateColumn
OTHER TIPS
<DataGridTemplateColumn Header="Password">
<DataGridTemplateColumn.HeaderStyle>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
</DataGridTemplateColumn.HeaderStyle>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<PasswordBox Name="PasswordBoxPass"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow