Information générale
Titre:
How to Add/Remove colums from grids
I have a grid from which I need to add or remove columns on a regular basis at runtime.
I have experimented with the width and visible properties for the columns but I am unhappy with the results.
RemoveObject works well but then I have the problem of putting the column back when I need it.
If use addobject then it appears I have to specify all the properties and methods for the column in code before I add it back.
Is there a way I can store the properties and methods of an existing column to a class, then remove the column....and later add it back from that class?
Or is there a much better way of doing this job that I have missed, as is still often the case:(
I expect someone will point out that there is a HideColumn property somewhere that I have missed :(
Thanks in advance
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