On 3/19/2013 1:38 PM, John J. Mihaljevic wrote:
Thanks for everyone's input!

The problem was a result of recreating the RecordSource for the grid. Each
time that happened, the grid lost its formatting (columns, click events,
etc.).

What I ended up doing was to use two identical tables: orderstemp and
ordersgrid. I made ordersgrid the grid's RecordSource. Every time I had to
refresh the grid, I'd do so in orderstemp, then zap ordersgrid, and append
all the records from orderstemp into it. And all is well.


I did this and the only "gotcha" I caution you against is if the cursor is an updatable view. Zapping an re-adding can be dangerous in this case.

Did you see that code I posted on SaveSource and RestoreSource methods in your grid class?


--
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to