Jump to content


Photo

RowVisible True and False hide vertical Scrollbar

NextGrid RowVisible Scrollbar

  • Please log in to reply
3 replies to this topic

#1 RonnyH

RonnyH
  • Members
  • 29 posts
  • Gender:Male

Posted 25 May 2013 - 11:25 PM

Hello!

I would like to perform a filtering on the NextGrid component. For this, I search all rows for a word. Lines that do not contain the word I hide with RowVisible: = False from. If I let show all rows again, missing the vertical scrollbar. I've attached a sample program. Hope you can help me.

Ronny

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 27 May 2013 - 09:24 PM

Hi,

Until I fix it, please call UpdateVertScrollbar at the end of routine.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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 RonnyH

RonnyH
  • Members
  • 29 posts
  • Gender:Male

Posted 24 August 2013 - 10:12 AM

Hi. I was not sure where I should insert the command. Is the problem already solved?

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 September 2013 - 02:49 PM

Hello,

Please sorry for so long delay.

Problem is that you need to access to RowVisible instead of Row[i].Visible:


    NextGrid1.BeginUpdate;
    for I := 0 to NextGrid1.RowCount-1 do begin
      if NextGrid1.RowVisible[i] = False then begin
        NextGrid1.RowVisible[i] := True;
      end;
    end;
    NextGrid1.EndUpdate;

In v6 you may use both versions.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users