G
Guest
I have an XML driven datagrid that displays configuration data. To hide particlular sensitive information I would like to mask particular cells with a password char like "*".
I can "color" out the data for particular cells by inheriting a class from DataGridTextBoxColumn and adding some code to the the paint event.
But I would rather use some form of password masking. I have tried setting the PasswordChar property of the underlying DataGridTextBox. However, this works only for the selected cell as it seems the instance of the DataGridTextBox is created and destroyed when cells are selected. When I select a new cell the data in the old masked cell appears again
Does anyone know how I could to this?
I can "color" out the data for particular cells by inheriting a class from DataGridTextBoxColumn and adding some code to the the paint event.
But I would rather use some form of password masking. I have tried setting the PasswordChar property of the underlying DataGridTextBox. However, this works only for the selected cell as it seems the instance of the DataGridTextBox is created and destroyed when cells are selected. When I select a new cell the data in the old masked cell appears again
Does anyone know how I could to this?