Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hide/Unhide columns in a datawindow

102 views
Skip to first unread message

Shankar

unread,
Oct 6, 1999, 3:00:00 AM10/6/99
to

Hi
I am trying to build an utility to hide and unhide the columns in a
datawindow. The problem is if I have 10 columns and if i hid the 2nd column
with the modify function, and later unhide it it is displayed as the 10th
column and not as the second columns. What do I need to do to get it to its
original place.
Thanks
Shankar

VestyBoy

unread,
Oct 6, 1999, 3:00:00 AM10/6/99
to
How are you hiding the column? If you are using the visible attribute
there should be no problems. Another suggestion would be to set the
foreground colour to the background colour.

Dave Vest

In article <dI3dCCDE$GA....@forums.sybase.com>,


Sent via Deja.com http://www.deja.com/
Before you buy.

Stefan Michl

unread,
Oct 7, 1999, 3:00:00 AM10/7/99
to
In article <dI3dCCDE$GA....@forums.sybase.com>,
"Shankar" <shank...@hotmail.com> wrote:
I think you are using a grid datawindow.
To restore the column to the second position you should set it's x-
position to a value between the x-positions of the first column and the
third column.
I had similar problems and a better solution to hide the column was to
set its width to zero.

Michael Chernin

unread,
Oct 7, 1999, 3:00:00 AM10/7/99
to

It seem's to me that the cause of your problem is grid layout. Try to use
tabular one.

Shankar <SHANK...@HOTMAIL.COM> wrote in message
news:dI3dCCDE$GA....@forums.sybase.com...

Ram Samant

unread,
Oct 7, 1999, 3:00:00 AM10/7/99
to

You can also just store the X & Y of the columns that you try to hide. When you
want to show them again just use dw.modify()
You will need to store the col.X & Col.Width for this.

ram

0 new messages