General information
Category:
Coding, syntax & commands
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only