Jump to content


Photo

PasswordChar in different rows

password nextgrid rows

  • Please log in to reply
2 replies to this topic

#1 pmuttley

pmuttley
  • Members
  • 3 posts

Posted 23 January 2012 - 01:29 PM

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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,195 posts
  • Gender:Male

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.
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.

#3 pmuttley

pmuttley
  • Members
  • 3 posts

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!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users