Hello,I have problem when showing data with PasswordChar in the grid (NetAdvantage 8.2.2008.2160).I have a column containing password data. In order to hide the password I created an UltraTextEditor, set the PasswordChar property to 0x25cf '●', and assigned the UltraTextEditor to the column's EditorControl property. So the passwords are shown with the PasswordChar.
Now, when I export the grid to PDF or XSP using the UltraGridDocumentExporter then the passwords are exported as plaintext.The same problem when I copy cells in the clipboard.
Is there a way to export and copy the passwords as they are shown in the grid (with PasswordChar or in any other way, but not as plaintext)?
Thanks
Enrico
Hi Enrico,
This seems like a bug to me. The UltraGridDocumentExporter should probably be handling this for you.I wil report this issue to Infragistics Developer Support so they can check it out.
In the mean time, the easiest thing to do would be to handle the BeginExport event of the UltraGridDocumentExporter event and simply hide the column. The event will pass you in a clone of the grid's DisplayLayout. Since it's a clone, you can modify it however you want and it will only affect the export, not the on-screen grid. So you can hide the password column in the cloned layout and same your users some printer ink. :)
Thanks Mike.But what about the clipboard? When I copy a selected row in the clipboard and then paste it anywhere the password is also pasted as plaintext. So maybe it's an issue of the grid or the UltraTextEditor.
That sounds like a bug, also. You should not be able to copy and paste the "real" text from a cell that is displaying a password character. Does the same thing happen if you copy and paste from the TextBox itself?
Hi Mike,
when the cell is in edit mode then I cannot copy the password. In the context menu the "Copy" command is grayed-out, and when I press CTRL+C then a tooltip appears which tells me that Copying is not allowed.
It happens if the row or the cell is selected and I press CTRL+C in order to copy and paste.
And I've noticed another thing: The passwords are also shown as plaintext in the DropDown list of the FilterRow.
I have reported both of your issue to Infragistics Developer Support, so you should be hearing from them soon if you have not already, and we will look into getting all of these issues resolved.
I think the problem is that the grid doesn't have any native support for password characters. It's relying on the editor. So the grid isn't accounting for the fact that the editor in this case is doing something unusual.
Hi,
I am also interested in the solution if there is any.
Did you find any way around this?
As a result of the report posted here, this issue was fixed back in 2009. So you probably just need to update or get the the latest service release.
How to get the latest service release - Infragistics Community