I have a table with a list of files whose name comprises a machine number and other values such as the date etc.
At the top of my table are ComboBoxes which are populated with unique values for each of the columns... so far so good.
My problem is that I use SelectionChanged events to filter the values displayed in the table (which I have working fine), but if I then update the ComboBox lists to reflect only the items that are in the table, thus narrowing the search, this inadvertently triggers the SelectionChanged event again and the program gets stuck in a nasty loop.
I really wanted the table to update as items are selected from the ComboBoxes but the only way round my problem as I see it is to add a Button that triggers the filter using the ComboBox values and then updates the ComboBoxes afterwards.
Can anyone suggest a better way?
Please don't post example code as I'd rather do it myself... just need a nudge in the right direction :sign0089:
Thanks,
RandomCoder
At the top of my table are ComboBoxes which are populated with unique values for each of the columns... so far so good.
My problem is that I use SelectionChanged events to filter the values displayed in the table (which I have working fine), but if I then update the ComboBox lists to reflect only the items that are in the table, thus narrowing the search, this inadvertently triggers the SelectionChanged event again and the program gets stuck in a nasty loop.
I really wanted the table to update as items are selected from the ComboBoxes but the only way round my problem as I see it is to add a Button that triggers the filter using the ComboBox values and then updates the ComboBoxes afterwards.
Can anyone suggest a better way?
Please don't post example code as I'd rather do it myself... just need a nudge in the right direction :sign0089:
Thanks,
RandomCoder