Hello there!
I've been using NextGrid component with Delphi 7 to replace the poor StringGrid, and I have to say this is a great component! But now I have a question, that really don't know if it's possible...
I have a TextColumn and I'd like to use passwordchar but only in some rows of this column, not all like it does by default. Is it possible? Or is there a workaround?
Thanks in advance!
2 replies to this topic
#1
Posted 23 January 2012 - 01:29 PM
#2
Posted 23 January 2012 - 02:13 PM
Hi,
For displaying data, whole column will display password char. You may use TextColumn, but not set PasswordChar property. Instead you will use OnApplyCell event and set result for desired row.
To set password char for InplaceEdit, you need to access to Editor property of Column and set PasswordChar inside OnEditEnter event.
For displaying data, whole column will display password char. You may use TextColumn, but not set PasswordChar property. Instead you will use OnApplyCell event and set result for desired row.
To set password char for InplaceEdit, you need to access to Editor property of Column and set PasswordChar inside OnEditEnter event.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 25 January 2012 - 01:26 PM
Hello Boki, thanks for your help!
Sorry, but I didn't understand the first idea... Here, OnApplyCell event isn't happening... So, what I did (a "dirty" solution) was creating a mirror hide column, and the show one, I replaced the data with real password chars...
Thanks again!
Sorry, but I didn't understand the first idea... Here, OnApplyCell event isn't happening... So, what I did (a "dirty" solution) was creating a mirror hide column, and the show one, I replaced the data with real password chars...
Thanks again!
Also tagged with one or more of these keywords: password nextgrid, rows
NextSuite v6 - VCL Components →
NextDBGrid v6 Component →
NextDBGrid Insert and Delete Row with INS/DEL keysStarted by csanesz, 21 Jan 2022 rows, insert, delete |
|
|||
NextSuite v5 - VCL Components (Previous version) →
NextDBGrid Component →
DBGrid add/del rows with Ins/DEL keysStarted by csanesz, 21 Jan 2022 dbgrid, insert, rows, delete |
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users