Solved

List controls ?

Posted on 1998-07-22
2
170 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

803 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