Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column with zero width leaves an ugly line.
Message
From
28/04/2009 15:01:17
 
 
To
28/04/2009 13:40:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01396614
Message ID:
01396791
Views:
100
I found the problem...

I was hiding the columns in the Init() method, BEFORE the RecordSource was set, so when the RecordSource was then set later, it was still filling the next non-visible column.

Here is the working code:
   With thisform.containerJobItems.gridResults
     .recordsource=lcJobListAlias
     .set_header_captions()   
     .column8.visible=.f.
     .column9.visible=.f.
     .column10.visible=.f.
   Endwith
>Have you reorder the columns ?
>
>On this case you cannot use columnIndex:
>
>
>Grid.ColumnName.Visible = .F.
>....
>
>* or
>FOR EACH cl IN grid.columns
>  IF INLIST(m.cl.ColumnOrder,8,9,10)
>      cl.Visible = .F.
>      EXIT
>  ENDIF
>NEXT
>
Previous
Reply
Map
View

Click here to load this message in the networking platform