On Nov 16, 2006, at 11:30 PM, Basil Shubin wrote:
>> You get this "for free" when you use a full-blown Dabo app with a
>> Dabo
>> Application object. The user can drag columns around, resize them,
>> and
>> the changes "stick".
>
> Is it save it states between sessions? If yes - how it done?
Look at the source, and search for 'setUserSetting'.
> What event raised when column was change its position? How I can then
> take column index?
There is no 'column position change' event. Instead, you can get the
index through either the column's Order property, which is an integer
based on its relative order among columns, or the grid's Columns
property, which is a list of column objects, so you can use
"grid.Columns.find(col)" to get its index.
>> There isn't a Visible property for columns (perhaps there should be).
>> You can call grid.removeColumn(columnIndex).
>
> Than how I can return removed column back? How to show it again?
There wasn't a way to do that until you first posted the question.
That day I added the Visible property to the dColumn class. You can
now set "col.Visible=False", and it will be removed from the grid. As
long as you keep a reference to the column object around, you can
later execute "col.Visible=True", and the column will re-appear just
as it was.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users