I am using grid datawindow in my application. After retrieving data i am
moving (changing the display order) the columns. That's working fine.
If i retrieve the data again column display order goes back to original, is
there any i can keep column display order as i changed.
could you please help me in this regard
thanks in advance
senthil s
On 9 Jul 2004 02:36:02 -0700, "senthil sakthivel"
<senthil.s...@isoftplc.com> wrote:
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com
Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups
Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com
Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org
---------------------------------------------------------------------
DISCLAIMER:
This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.
Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has mutliple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.
The column order in the grid datawindow is based on the order of the
columns in the sql.
I've written an app that includes functionality to save the column
order (after a user has changed it from the default) to a text file
and I also give the user the ability to save a name to that 'column
view'. They can then load different 'column views' and apply them to
their datawindow. (This has gone over so well that I'm moving the
data from a text file into a database table and applying the
functionality to other grid datawindows.)
To make this work you first have to set the visible attribute for all
columns to be FALSE (0). Then reset the visible attribute to be TRUE
(1) on a column by column basis in the order you want the columns
displayed.
Hope this helps.
- Jason
<><