Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Pamela,
Another way is to create a class of the control with the code in it. When you change the ColumnCount property of your grid, by default each column is poplated with a generic textbox. You can then scan through your columns and add the subclassed control to each column...
For each oColumn in Thisform.oGrid.Columns
oColumn.AddObject("myTextBox1","myTextBox")
oColumn.CurrentControl="myTextBox1"
oColumn.myTextBox1.ControlSource="SomeControlSource"
oColumn.ControlSource="SomeControlSource"
Endfor
Before you can do this, you must have defined the class "myTextBox" and have that classlibrary loaded. If you use this method, you can change any method/event to meet your needs.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement