Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not delete textbox in a grid on pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00664129
Message ID:
00664139
Vues:
26
>>Hi everybody,
>>
>>I have a grid on a pageframe. I'm trying to delete textbox in the column and replace it with my own textbox. I select this textbox in Property sheet and then click on form's caption and press delete button.
>>
>>However, nothing happens and the textbox still in the column. What else could I do?
>>
>>Thanks in advance.
>
>
>Nadya;
>
>First select the desired text box to delete from the grids property sheet. Next left click on the column title of the corresponding column. Then press the delete key.
>
>Tom

Ok, will try it next time :) This time I did it programmatically using the following code:
********************************************************************
*  Description.......: GridBuilder - allows to build a grid in design-time
*  Calling Samples...:
*  Parameter List....:
*  Created by........: Cetin Basoz
*  Modified by.......: Nadya Nosonovsky 10/25/2001 04:14:31 PM
********************************************************************
*custom builder not registered
aselobj(arrObj)
for each oObj in arrObj
	if upper(oObj.baseclass)='GRID'
		for each oColumn in oObj.columns
			with oColumn
*			    .name = "col"+proper(justext(.controlsource))
			
				if .name = 'Column2' and type('oColumn.text1')="O" and lower(.text1.baseclass)='textbox'
						.removeobject('text1')
					*	.newobject('text1','EditInGrid','nAdditions.vcx')

				endif
							
			endwith
		next
	endif
next
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform