Question

How to make a column in WPFToolkit:DataGrid PasswordBox like?

Was it helpful?

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
scroll top