🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database
Article #161

searching for "exotic" dbgrid

#161
From: 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?
Technical Details
Message-ID: <1176479106.235001.27780@y80g2000hsf.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!y80g2000hsf.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 115d96,38444e66ca3f9038,start
X-Google-Attributes: gid115d96,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!y80g2000hsf.googlegroups.com!not-for-mail
From: lalev@uni-svishtov.bg
Newsgroups: borland.public.delphi.database
Subject: searching for "exotic" dbgrid
Date: 13 Apr 2007 08:45:06 -0700
Organization: http://groups.google.com
Lines: 33
Message-ID: <1176479106.235001.27780@y80g2000hsf.googlegroups.com>
NNTP-Posting-Host: 82.199.221.28
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1176479106 31164 127.0.0.1 (13 Apr 2007 15:45:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 13 Apr 2007 15:45:06 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: y80g2000hsf.googlegroups.com; posting-host=82.199.221.28;
   posting-account=M-1nJw0AAADd3q3vYwjpMpNGCzt7qEP8