Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Deactivate an item in a valuelist based on a tag property

Posted on 2009-05-08
Medium Priority
Last Modified: 2012-08-14
I have some items in an Infragistics (using 2008 volume 3 WinForms) valuelist which are active and some are inactive but need to be displayed for historical records purposes.  

My ideal situation would be to display them but not select the item.  The second best scenario would be to do a strikethrough on the text of the Inactive records.
Question by:busapps
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 11

Expert Comment

ID: 24344430
there is a before drop down event you can handle it and then depend upon the data present in the grid row u will handle the enabling or disabling of this drop down...


Author Comment

ID: 24344447
Not quite what I'm looking for.  I need to allow some ValueListItems to be selected within a ValueList, but other ValueListItems within the ValueList to be not selected.  
LVL 11

Expert Comment

ID: 24344768
can u use the filter items, if u want to disable some items in the valuelist there need to do too much programming.

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.


Author Comment

ID: 24344774
not sure what you mean, please expound.
LVL 11

Accepted Solution

PlatoConsultant earned 2000 total points
ID: 24344850
it is difficult to enable / disable  items in the value list at run time ... change the popluating of value list logic as shown in the infragisitcs sample.

    private void PopulateSpacePortsValueList()
        if ( this.gridValueLists.DisplayLayout.ValueLists.Exists("SpacePorts") )
        ValueList objValueList = this.gridValueLists.DisplayLayout.ValueLists.Add("SpacePorts");
        DataTable ds = new SpaceFlightsData().SpacePorts;
        for ( int i = 0; i < ds.Rows.Count; i++ )
            objValueList.ValueListItems.Add((int)(ds.Rows[i].ItemArray[0]), ds.Rows[i].ItemArray[1].ToString());

Open in new window


Author Closing Comment

ID: 31579696
The 2 valuelists is a good idea.  Just change them on the before dropdown event and set it back on the afterExitEntryMode event.

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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