I presume that you have set the Recordsource for the grid to a cursor initially so you need to set it to be " " immediately before you generate the new sql Recordsource and then set it to be that new Recordsource after the cursor has been created. This preserves all the column widths etc.
Dave -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Desmond Lloyd Sent: 04 September 2014 23:27 To: ProFox Email List Subject: VFP6: Grid Column Width Issue Odd problem with VFP6 (yes VFP6) 8-) End of day need some help... Have a form with grid, approximated column widths, entered headings, named everything.. in the init of the form I create the cursor for the grid, then define the record source as the new cursor then define each control source with the new fields.... Form fires and the grid displays, totally ignoring all my column widths, the first few columns look good, but the rest are all one character wide..... Yikes... What am I missing? TIA, Desmond --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ 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.

