Thanks to All (Nancy,Macer,Tom, Jose). Due that i should be able to restore the columns later, I can't use removeobject.
Tom: I stoled your code. The only change I made was set the columnOrder to ColumnCount, so the column is now at the end of the grid.Thanks
>Since you only have property access use the width and enabled to 'remove' the column and get rid of the tab stop. The columnorder setting will move the small space to the beginning or end of the grid.
>
> thisform.grid1.column2.width = 0
> thisform.grid1.column2.enabled=.f.
> thisform.grid1.column2.ColumnOrder=1
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