Solved

List controls ?

Posted on 1998-07-22
2
171 Views
Last Modified: 2013-11-20
I am using list control to display certain information. Based on the users choice, I construct the list control with different set of columns and items. I use only one  list control but the user has three  options. In each option the list control has different set of fields.  Iam using the ccommand DeleteColumns and DeleteAllItems before initializing the list control for every choice. I keep track of the number of columns the previous choice has created for the list ctrl and I delete the same number of columns for the new choice. After this I proceed to construct the list control for the new choice. But this procedure does not works as there aalways remains some remnants.. One or two undeleted columns do  always exist. What do I do? Please advvise.
0
Comment
Question by:meyaps
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 50 total points
ID: 1319611
I suspect you may be deleting the columns in the wrong order.  For example:  If you have two columns 0 and 1 and you delete column 0 first, then delete column 1 it won't work.  Why? Because column 1 becomes column 0 once the original column 0 is deleted.

If that's not the problem, can you show us some sample code of what you're doing?
0
 

Author Comment

by:meyaps
ID: 1319612
Thank you Jstolan. It was my mistake for not knowing abt list controls. Thanks for the assistance, it worked. bye!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question