Jump to content


Non-persisting checkbox for dynamic filtering


  • Please log in to reply
3 replies to this topic

#1 Thomas Steinmaurer

Thomas Steinmaurer
  • Members
  • 125 posts

Posted 01 February 2012 - 03:48 PM

Hello Boki,

is there a way to have a non-persisting checkbox in a TNextDBGrid, which would allow we to realize some kind of dynamic filtering?

You probably know the GUI of the Windows 7 Resource Monitor, showing rows and a checkbox on the left which allows filtering detailed data for e.g. a particular process. I'm pretty much looking for something like that with a NextDBGrid, as my rows are coming from a Firebird database.

Any ideas?

Thanks!

Thomas
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and NexusDB V2
Upscene Productions: http://www.upscene.com
My blog: http://blog.upscene.com/thomas/

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,685 posts
  • Gender:Male

Posted 02 February 2012 - 12:37 AM

Hi Thomas,

I am not sure that I understand feature.

I have open Monitor and see that CheckBox column act as standard TNxDBCheckBoxColumn. Did I miss something more?

Thanks
boki@bergsoft.net
--
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 Thomas Steinmaurer

Thomas Steinmaurer
  • Members
  • 125 posts

Posted 02 February 2012 - 01:53 AM

Hi!

What I need is a checkbox in a TNextDBGrid for each line, which doesn't belong to any field in the table at all, but it should be clickable etc. Check out for example TSMDBGrid here: http://www.scalabium.com/smdbgrid.htm

Here you see a checkbox in the "Indicator" area, which doesn't belong to a table field.

Thanks
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and NexusDB V2
Upscene Productions: http://www.upscene.com
My blog: http://blog.upscene.com/thomas/

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,685 posts
  • Gender:Male

Posted 02 February 2012 - 02:31 AM

Hi Thomas,

Maybe you can use CheckBox Column, but set no FieldName.

Then, inside OnApplyCell set Value for cell (same as like FieldName is set).

I hope that this helps.
boki@bergsoft.net
--
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