Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using the Microsoft Hierarchical Flex Grid
Message
De
20/08/2003 12:56:00
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/08/2003 12:37:08
Michael Harris
Harris and Harris Consultants
Temple Hills, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00808109
Message ID:
00821879
Vues:
25
>Cetin,
>
>This may be a stupid question, but how do you get the data out of this control (the mshflexgrid)? In other words, how do you get the contents of the selected cell, the row of the selected cell, and the column of the selected cell? Thanks

Currently this is what I could find, might find better one later :
* RowColChange event
*** OLE Control Event ***
*** ActiveX Control Event ***

With this
	.redraw = .f.
	lnRow = .Row
	lnCol= .Col
* Test purpose
	_screen.Print(.TextArray(lnRow*.Cols+lnCol)+chr(13))
* Test purpose
	lnCols = 0
	for jx = 0 to .Bands - 1 
		lnCols = lnCols + .Cols(jx)
	endfor
	dimension aAllData[lnCols]
	for ix=0 to lnCols-1
		aAllData[ix+1] = .Textmatrix(lnRow, ix)
	endfor
	for ix = lnCol to 0 step - 1
		lnRowBand = lnRow
		do while empty(.Textmatrix(lnRowBand, ix)) and lnRowBand > 0
			lnRowBand = lnRowBand-1
		enddo
		aAllData[ix+1] = .Textmatrix(lnRowBand, ix)
	endfor
	.redraw = .t.
Endwith
=seek(val(aAllData[2]),'myTable','PrKeyTag')
ThisForm.Container1.Refresh && Fields were in container
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform