On Thursday 19 November 2009 08:45:41 am Paul McNett wrote:
> John wrote:
> > Ok this is how I normally create a grid.
>
> Ok thanks. I didn't even run it and it hit me why it isn't working for you.
> The column properties (Width, ColumnOrder) are persisted to the preferences
> file using the column's DataField as the key.
>
> So it is probably persisting just fine. You could check that by using
> PrefEditor.
>
> But it isn't finding the persisted Width at the correct time (during column
> instantiation) because at that point you haven't assigned the DataField
> yet.
>
> I guess we should make the restoring happen upon setting of DataField,
> under the assumption that DataField would only be set once during the
> lifetime of the app.

>
> Paul

You are right (of course).  The data is in the db.  However, your last 
statement about the setting the datafield once may not work for me.  I have 
need to create a grid on the fly for my look ups.  The data is different for 
each look up depending on the selection critiera.  Is there a way to turn off 
the persistance?

Johnf



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to