Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bad grid behavior
Message
De
11/06/2007 14:06:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Bad grid behavior
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01232051
Message ID:
01232051
Vues:
53
I have a grid which has a cursor (created by a cursor adapter)
2 columns:

formatted by code like this:
WITH THISFORM.Pgf1.Page2.Pgf1.Page1.GrdAttr  AS GRID
	.Left= 0
	.Top= 50
	.Width=406
	.Height=217
	
	.AllowCellSelection=.f.
	.AllowHeaderSizing=.f.
	.AllowRowSizing=.f.
	.DeleteMark=.f.
	.GridLines= 0
	.HighlightBackColor=RGB(0, 0, 255)
	.RecordMark=.f.
	.ScrollBars= 2
	.SplitBar=.f.
	
	.RECORDSOURCE="curCONFLAGS"
	
*	.RECORDSOURCE="ccAttr"
	.COLUMNCOUNT=2
	
	.COLUMNS[1].CONTROLSOURCE=[curCONFLAGS.groupname]
	.COLUMNS[1].header1.CAPTION=[Group]
	.COLUMNS[1].header1.alignment=2
	.COLUMNS[1].header1.fontsize=8
	.COLUMNS[1].WIDTH= 120
	.COLUMNS[1].Text1.ALIGNMENT=0
	
	.COLUMNS[2].CONTROLSOURCE=[curCONFLAGS.fname]
	.COLUMNS[2].header1.CAPTION=[Attribute Name]
	.COLUMNS[2].header1.alignment=2
	.COLUMNS[2].header1.fontsize=8
	.COLUMNS[2].WIDTH= 260
	.COLUMNS[2].Text1.ALIGNMENT=0


ENDWITH
The funny thing is that when run, the colums are CENTERED sort of

It's not in the code! or in the grid properties.
I plopped in a base VFP grid and named it grdAttr and the same happendd
If I do this before the code above:
SELECT groupname,fname,flag_id FROM curCONFLAGS INTO CURSOR ccAttr
and change the cursor name to reflect the new cursor name the grid looks like expected, both columns left justified!


I cannot find what the problem could be. Has anybody seen this (VFP9-SP2, windows Vista Ultimate)


Thanks

By the way this is the SQl to create the cursor:
"SELECT "+;
   "Conflags.conflag_id,"+;
   "Conflags.contact_id,"+;
   "Conflags.flag_id,"+;
   "Conflags.insdttm,"+;
   "Conflags.insuser_id,"+;
   "Conflags.upddttm,"+;
   "Conflags.upduser_id,"+;
   "Flgroups.groupname,"+;
   "Flags.fname"+;
" FROM kba_data!conflags      INNER JOIN kba_data!flags     ON  Conflags.flag_id = Flags.flag_id      INNER JOIN kba_data!flgroups     ON  Flags.flgroup_id = Flgroups.flgroup_id"
peter
Peter Cortiel
Répondre
Fil
Voir

Click here to load this message in the networking platform