Re: Invisible ListView Columns

new topic     » goto parent     » topic index » view thread      » older message » newer message

Try using EuGrid. It allows you to only display certain elements in the
underlying data set.

example:

constant my_data = {
    { "1 show 1", "1 show 2", "1 hide 1", "1 show 3" },
    { "2 show 1", "2 show 2", "2 hide 1", "2 show 3" }
},

myGrid = EGW_CreateGrid( MyWin, 10, 10, 100, 100, True ),

-- col_x = EGW_AddColumn( id, name, width, position, type, data_col )
col_1 = EGW_AddColumn( myGrid, "show 1", 100, EGW_LAST, EGW_EDIT, 1 ),
col_2 = EGW_AddColumn( myGrid, "show 2", 100, EGW_LAST, EGW_EDIT, 2 ),
col_3 = EGW_AddColumn( myGrid, "show 3", 100, EGW_LAST, EGW_EDIT, 4 )    --
note: skipped element 3

-- input my_data
VOID = EGW_LoadData( myGrid, my_data, EGW_REPLACE )

now you can use EGW_LoadData() and EGW_UnloadData() to set/retreive your
data, edit it, and put it back (using EGW_REPLACE).

~Greg

----- Original Message -----
From: "Virtual B" <behaviorself at netzero.net>
To: <EUforum at topica.com>
Sent: Saturday, March 06, 2004 1:07 AM
Subject: Invisible ListView Columns


>
>
> Does anyone know if it is possible to have an invisible column in a
> ListView?  I want to be able to keep data for each entry I have in a
> ListView, but I don't want it to show.  I've tried using setColumn() and
> setting the width to 0, but the column still shows.  Also, the heading
text
> for the column shows garbage initially.  If I click the column heading, it
> displays the heading for the previous column.  Any help would be much
> appreciated.
>
> Thanks,
>
> Virtual B
>
>
> ---
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu