Information générale
Catégorie:
Codage, syntaxe et commandes
You can define a Header class in your main prg
DEFINE CLASS HEADERSS AS HEADER
PROCEDURE CLICk
<... your code ...>
ENDPROC
ENDDEFINE
and in the init event of the grid :
for i=1 to this.columncout
this.Columns(i).removeobject('header1')
this.Columns(i).addobject('header1','headerss')
endfor
I hope this help.
| I have created a grid that resets the order of a table when the header of
| the column is clicked. I did this using the Grid.column.header.click()
| event.
|
| Is there any way I can create a grid to work this way at run-time? I
don't
| always know at design time how many columns there will be etc. As far as
I
| know I can't subclass column or header or can I ?
|
| Any help appreciated.
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