Jump to content


Photo

HideWhenEmpty


  • Please log in to reply
8 replies to this topic

#1 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 09 April 2020 - 08:04 AM

Hello,

 

HideWhenEmpty is not working with VirtualGrid. Is this correct?

(The previous field become longer)

 

Or I don't know what the function is exactly. Please tell me.

 

Regards.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 09 April 2020 - 02:31 PM

Hi,

 

Can you please tell me which column type is not working?

 

Thank you


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 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 09 April 2020 - 04:40 PM

Yes. I only use TNxTextColumn6



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 10 April 2020 - 06:31 PM

Hi,

 

Just to ask did you both checked HideWhenEmpty (to true) and set EmptyCaption to a string?

 

So far in my case it seems to work. Maybe the problem is in some other part of your code?


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.

#5 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 12 April 2020 - 08:51 AM

Now I understand the function. I thought that with an empty string the previous cell would become wider.
That will certainly not work?



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 April 2020 - 01:53 PM

Hi,

 

I'm not sure if I understand your question well, can you give me more details?


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.

#7 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 13 April 2020 - 02:20 PM

Hi,

 

Hopefully with a drawing more clearer.

 

    Row1 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield
    Row2 > Field1 | Field2 |                              | Field4 | Lastfield
    Row3 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield
    Row4 > Field1 | Field2 |                              | Field4 | Lastfield
    Row5 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield

 

Above you see two fields empty.

    Row1 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield
    Row2 > Field1 | Field2 now wider.....          | Field4 | Lastfield
    Row3 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield
    Row4 > Field1 | Field2 also wider....           | Field4 | Lastfield
    Row5 > Field1 | Field2 | HideWhenEmpty3 | Field4 | Lastfield

 

Now Field2, Row2 and Row4 includes Fieldwidth at the right (HideWhenEmpty3). Field2 become larger.

 

Hope you understand. :)

 

 

 



#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 April 2020 - 02:36 PM

Hi,

 

Unfortunately it’s not possible. With regular NextGrid you can merge cells, but not in virtual one.


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.

#9 DelphiToday

DelphiToday
  • Members
  • 146 posts
  • Gender:Male

Posted 13 April 2020 - 02:59 PM

Thanks. No problem. :rolleyes:






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users