🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #359

jdbTable how to set caption or header

#359
From: cts ctskinnerATyahoo.com
Date: Fri, 10 Nov 2006 05:38
23 lines
1382 bytes
how do i set jdbTable caption or column header to be 
Different from dataset column names?
after this:
    jdbTabla.setDataSet(dmProja.getProjects());
    // dmProja is a DataModule



this does NOT work
    TableColumn c = jdbTabla.getColumnModel().getColumn(0);
    c.setCaption("zzz");

This does NOT work
    TableColumn c = jdbTabla.getColumnModel().getColumn(0);
    c.setHeaderValue( "aaa" );

This returns column count of zero;
    com.borland.dx.dataset.DataSet ds;
    ds = jdbTabla.getDataSet();  //
    int cod;
    if (ds != null) {
        cod = ds.getColumnCount();
Technical Details
Message-ID: <45541e5c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,1c425cd2c8803f27,start
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "cts" ctskinnerATyahoo.com
Sender: "cts" ctskinnerATyahoo.com
Reply-To: "cts" ctskinnerATyahoo.com
Subject: jdbTable   how to set caption or header
Newsgroups: borland.public.jbuilder.database
X-User-Info: 220.101.175.81     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <45541e5c$1@newsgroups.borland.com>
Date: 9 Nov 2006 22:38:20 -0700
X-Trace: newsgroups.borland.com 1163140700 207.105.83.66 (9 Nov 2006 22:38:20 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed.utanet.at!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail