The setColumnIndices() method, as per my understanding, makes different columns (which have already been created) visible and even hides them. But as per my requirement, I need to add a column at rumtime. The number of columns is not known to me while creation of the grid. I'll start with creating some fixed number of columns, and based on user inputs, I'll keep adding more columns.
Further, I may even need to drag columns and move to new positions (like it's there for different tabs of Mozilla Firefox web browser).
I hope this explains my problem!
Gaurav Arora
Gaurav Arora
Thursday, January 31, 2008
You just need to 'clear' some Models before inserting new columns.
Please search the forum for clearxxxxxModel() for more info.
Check this sample:
HTH