Deactivate an item in a valuelist based on a tag property

Posted on 2009-05-08
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
  • 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.

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails


Author Comment

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

Accepted Solution

PlatoConsultant earned 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now