🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jdbTable how to set caption or header

#360
From: John Moore (TeamB)
Date: Fri, 10 Nov 2006 21:36
37 lines
2067 bytes
Please repost in the dbswing section for jdbTable help..


"cts" ctskinnerATyahoo.com wrote:
> 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();
> 
> 


-- 
=============================================
TeamB are volunteer helpers.  Please DO NOT REPLY VIA EMAIL!
Post all questions and replies to this newsgroup ONLY
For papers on DataExpress, Applets, JSP, and Web Development go to:
http://www.microps.com/mps/paperFAQ.html
====================================================
Technical Details
Message-ID: <4554f0cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45541e5c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,1c425cd2c8803f27
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Nov 2006 13:36:16 -0800
From: "John Moore (TeamB)" <jbm@microps.com>
User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.database
Subject: Re: jdbTable   how to set caption or header
References: <45541e5c$1@newsgroups.borland.com>
In-Reply-To: <45541e5c$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 207.137.13.178
Message-ID: <4554f0cf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1163194575 207.137.13.178 (10 Nov 2006 13:36:15 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail