🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.database
1 messages
1 total messages Started by lalev Fri, 13 Apr 2007 15:45
searching for "exotic" dbgrid
#161
Author: lalev
Date: Fri, 13 Apr 2007 15:45
32 lines
2132 bytes
I want to give my user opportuninty to create the following grid.

                       product 1     product 2    product 3  ...
(fixed row)
material 1
material 2
material 3
....
(fixed column)

Where the names of the products and materials are taken at runtime
from tables that the user
can alter. The grid then must store the values of it's cell in a table
with the following stucture

product_id
material_id
value

The grid should be able to react to changes of the products and
material tables too.
For example if user deletes product1, it's column should disappear
from the table and the
coresponding records in the table to be deleted.

I tried to implement this behaviour with standard string grid and
almost succeeded doing that, but as a result I've got alot of
"spagetti code" which I start to mistrust, so I decided to spend some
time writing my own grid component. The only thing is that I want to
be sure that I'm not replicating something already done, which I could
use instead.
Any ideas please?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads