Hello! Task - in the "Password" column, the table displays asterisks "********" instead of the real password. At the beginning of editing the password cell, the real password appears and can be edited. After editing the password, the data is saved, and asterisks appear again instead of the real password. How can this be organized? (C1FlexGrid Control ComponentOne, shared with DataGrid property and events) I use the following code
<Window x:Class="TurCC.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"> <c1:C1FlexGrid Name="gr_CertUsers" AllowSorting="True" AutoGenerateColumns="False" SelectionMode="Row" AllowDragging="None" GridLinesVisibility="All" AllowDrop="False" HeadersVisibility="Column" ItemsSource="{Binding Path=CertUsersCV}" SelectedItem="{Binding Path=SelectedCertUser, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" CellEditEnded="gr_CertUsers_CellEditEnded" PrepareCellForEdit="gr_CertUsers_PrepareCellForEdit"> <c1:C1FlexGrid.Columns> <c1:Column ColumnName="UserLogin" Header="Логин" Binding="{Binding Login, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> </c1:Column> <c1:Column ColumnName="UserPassword" Header="Пароль" Binding="{Binding Path=Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> </c1:Column> </c1:C1FlexGrid.Columns> </c1:C1FlexGrid> </Window> private void gr_CertUsers_PrepareCellForEdit(object sender, CellEditEventArgs e) { // думаю, здесь можно вставить в ячейку реальный пароль } private void gr_CertUsers_CellEditEnded(object sender, CellEditEventArgs e) { //думаю, здесь можно вернуть звёздочки для ячейки, вместо реального пароля } I tried to change the cell text in the gr_CertUsers_PrepareCellForEdit function, but it did not work out. How to programmatically change the text at the time of the start of cell editing and at the time of the end of editing?
C1FlexGrid? Looks like a control from some third-party library. - VladD