Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Dynamic column in grid-DW

3 posts in DataWindow Last posting was on 2009-10-16 07:45:46.0Z
"Alex Wittler" Posted on 2009-10-14 13:32:12.0Z
From: "Alex Wittler" <wittler(at)(no-spam)sf-datentechnik(dot)de>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Dynamic column in grid-DW
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ad5d2dc@forums-1-dub>
Date: 14 Oct 2009 06:32:12 -0700
X-Trace: forums-1-dub 1255527132 10.22.241.152 (14 Oct 2009 06:32:12 -0700)
X-Original-Trace: 14 Oct 2009 06:32:12 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90079
Article PK: 409685

I have created a computed field as column in a grid-datawindow and a text
field as header of this column. That works mostly, but in a few cases it
happens, that when I move the column, the header afterwards lays over the
column left of the moved column instead of the moved column.

I tried to set the x-position of the header on the x-position of the column
to solve this problem, and when I ask the result by describe, I get the
correct x-position, but really the header remains over the wrong column.

What can be the reason of the problem, and how can I solve it?

Alex Wittler


Jeremy Lakeman Posted on 2009-10-15 13:10:28.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Dynamic column in grid-DW
Date: Thu, 15 Oct 2009 06:10:28 -0700 (PDT)
Organization: http://groups.google.com
Lines: 20
Message-ID: <10e4c010-71cb-4e68-aecd-cc3d9d219ff9@x5g2000prf.googlegroups.com>
References: <4ad5d2dc@forums-1-dub>
NNTP-Posting-Host: 219.90.186.150
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1255612228 639 127.0.0.1 (15 Oct 2009 13:10:28 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 15 Oct 2009 13:10:28 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x5g2000prf.googlegroups.com; posting-host=219.90.186.150; posting-account=euaBtgoAAAC_vDxfsxmpMKlBxHaHpmRS
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!transit3.readnews.com!postnews.google.com!x5g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90090
Article PK: 409696

On Oct 14, 11:32 pm, "Alex Wittler" <wittler(at)(no-spam)sf-

datentechnik(dot)de> wrote:
> I have created a computed field as column in a grid-datawindow and a text
> field as header of this column. That works mostly, but in a few cases it
> happens, that when I move the column, the header afterwards lays over the
> column left of the moved column instead of the moved column.
>
> I tried to set the x-position of the header on the x-position of the column
> to solve this problem, and when I ask the result by describe, I get the
> correct x-position, but really the header remains over the wrong column.
>
> What can be the reason of the problem, and how can I solve it?
>
> Alex Wittler

If you are modifying the x position and width of columns in a grid
from powerscript code you need to add about 4 pixels of padding
between columns.


"Alex Wittler" Posted on 2009-10-16 07:45:46.0Z
From: "Alex Wittler" <wittler(at)(no-spam)sf-datentechnik(dot)de>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <4ad5d2dc@forums-1-dub> <10e4c010-71cb-4e68-aecd-cc3d9d219ff9@x5g2000prf.googlegroups.com>
In-Reply-To: <10e4c010-71cb-4e68-aecd-cc3d9d219ff9@x5g2000prf.googlegroups.com>
Subject: Re: Dynamic column in grid-DW
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18005
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4ad824aa@forums-1-dub>
Date: 16 Oct 2009 00:45:46 -0700
X-Trace: forums-1-dub 1255679146 10.22.241.152 (16 Oct 2009 00:45:46 -0700)
X-Original-Trace: 16 Oct 2009 00:45:46 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90098
Article PK: 409704

Many thanks, but this was not the problem. I had allready reguarded the
space between the columns.

The problem was, that if the dynamically created column first was invisible
and later set visible, its header had a bigger width than the column. I
don´t know the reason, but I could solve the problem by modifying the width
of the header of the column after set it visible.

"Jeremy Lakeman" <jeremy.lakeman@gmail.com> schrieb im Newsbeitrag
news:10e4c010-71cb-4e68-aecd-cc3d9d219ff9@x5g2000prf.googlegroups.com...
On Oct 14, 11:32 pm, "Alex Wittler" <wittler(at)(no-spam)sf-

datentechnik(dot)de> wrote:
> I have created a computed field as column in a grid-datawindow and a text
> field as header of this column. That works mostly, but in a few cases it
> happens, that when I move the column, the header afterwards lays over the
> column left of the moved column instead of the moved column.
>
> I tried to set the x-position of the header on the x-position of the
> column
> to solve this problem, and when I ask the result by describe, I get the
> correct x-position, but really the header remains over the wrong column.
>
> What can be the reason of the problem, and how can I solve it?
>
> Alex Wittler

If you are modifying the x position and width of columns in a grid
from powerscript code you need to add about 4 pixels of padding
between columns.