flexgrid problem.........need an urgent help

when the form is loaded there will be a fixed row having particular no of columns labeled as per specified.but later depending upon the the item selected from the combo some columns r to be deleted.
i tried this by using refresh as well as clear method
but that didnt serve my purpose so i tried using removeitem and additem method but still my purpose is not fulfilled.....it shows some error.if u can provide code i will be thankful
sms2kAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimCotteeHead of Software ServicesCommented:
Hi sms2k,

You cannot remove a column except for the last column in the grid (by setting .Cols = .Cols - 1) or similar. If you want to remove a column that is not at the right-hand end of the grid then you need to either transfer the data from column x to x - 1 and so on until you have enough free columns at the end to remove. Alternatively simply set the .ColWidth(ColumNo) property = 0 to hide the column. This could prove faster and easier, also if you later decide to reinstate the data you do not have to repopulate this column.

Tim Cottee MCSD, MCDBA, CPIM
http://www.timcottee.tk 

Brainbench MVP for Visual Basic
http://www.brainbench.com

Experts-Exchange Advisory Board Member
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CleanupPingCommented:
Hi sms2k,
This old question (QID 20556007) needs to be finalized -- accept an answer, split points, or get a refund.  Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
0
GPrentice00Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-->Accept TimCottee's comments as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

GPrentice00
EE Cleanup Volunteer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.