I have a huge database (not TTable compatible) that I don't want to replicate in NextGrid. Instead I would like an event to request the relevant cell string on a cell by cell basis as needed depending on what cells are in view.
There is a OnCellFormat event. What I need is a OnCellDraw event but I would rather not do the drawing myself but instead return a string that NextGrid can draw for me.
Thanks!
NextGrid OnCellDraw
Started by Jon G, Apr 06 2011 03:19 AM
2 replies to this topic
#1
Posted 06 April 2011 - 03:19 AM
#2
Posted 06 April 2011 - 03:33 AM
Hello Jon,
Maybe for your need you may use OnApplyCell event, but you will need to have actual rows in grid. This mean that you can't escape from loading grid with records.
I hope that this helps.
Best regards
Maybe for your need you may use OnApplyCell event, but you will need to have actual rows in grid. This mean that you can't escape from loading grid with records.
I hope that this helps.
Best regards
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 06 April 2011 - 04:20 AM
QUOTE (Boki (Berg) @ Apr 5 2011, 10:33 PM) <{POST_SNAPBACK}>
Maybe for your need you may use OnApplyCell event, but you will need to have actual rows in grid. This mean that you can't escape from loading grid with records.
Thanks so much for your prompt help as always!
In this case what I needed was NxVirtualColumn type. It did exactly what I needed.
For future lurkers: NxVirtualColumn has an event that yields aRow, aCol where the programmer can specify a WideString and the grid will draw it. (See http://dn.bergsoft.n...mn-tutorial.htm )
if I needed to both draw text and a picture I would probably use OnCustomDrawCell
( See http://dn.bergsoft.n...in-nextgrid.htm ).
Thanks again Boki!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











