hi
i have a ultra combo editor that is filled with a list of departments in order to create a sql query
example (ALL, dept 1, dept 2, dept n) so at run time i need to check all departments if ALL value was checked or uncheck all departments if ALL values was changed from checked to uncheck
i was trying to use the valuechange event but i dont see how to detect what item changed, any idea or sugestion to the righ way?
Thanks.
In VB it would look something like this:
Imports Infragistics.WinImports Infragistics.Win.EditorCheckedListSettingsPublic Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim checkedItemList As ICheckedItemList = CType(Me.UltraComboEditor1.Items.ValueList, ICheckedItemList) AddHandler checkedItemList.CheckStateChanged, AddressOf Me.checkedItemList_CheckStateChanged End Sub Public Sub checkedItemList_CheckStateChanged(ByVal sender As Object, ByVal e As CheckStateChangedEventArgs) End SubEnd Class
how would this be on vb net
do i need to import somthing in order to recognize CheckedItemList
this is what im trying to do but doesnt recognize CheckedItemList
Dim
checkedItemList As CheckedItemList = Me.cmbModel.Items.ValueList
Hi,
You can do something like this:
ICheckedItemList checkedItemList = this.ultraComboEditor.Items.ValueList as ICheckedItemList;checkedItemList.CheckStateChanged += new EditorCheckedListSettings.CheckStateChangedHandler(checkedItemList_CheckStateChanged);