Hi David
-----
Anyway, no you can't have multiple column subclasses in a grid at design time.
-----
I write this.
This is the main limit of the grid today
------
I'm not sure why you'd want to composite particular controls to different column classes like this. You can achieve the same result using one column subclass and dropping the controls you want onto the grid.
------
Now i use this VCX style design.
If VFP support multiple column subclasses in a grid at design time,
i can do more complex grid with much little code, greater clarity and
much little work.
Little Little example:
- on grid i want textBox,EditBox,.... on various column
- i define a grid with MemberClass = "MyColumn"
I want TextBox with Sparse = .T.
but for EditBox i need to set Sparse = .F.
( i need set this any time i drop a EditBox on MyColumn)
Yes, i can put this.Parent.Sparse = .F. on Init() of EditBox class, but ....
With Dynamic.... properties this gain is more.
Fabio
Précédent
Suivant
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