How to exclude an element from a ComboBox in C #?

1

They could help me I have a grid in which I load a ComboBox control which is binded to a table, the problem is that I need to exclude the current grid element from the ComboBox and show all the others.

Try the following if it works but the table converts it to a list of ROWS that when assigned to the DataSource of the ComboBox shows me all the properties of the ROW.

Could someone give me an idea? The issue is very dynamic since a combobox is loaded in a grid column and the element in which it is stopped is excluded from the grid.

src.DataSource = _datosMesas.AsEnumerable().Where(item => item["Mesa"].ToString() != CurrentMesaValue).ToList();
    
asked by Aetos2501 26.07.2018 в 02:26
source

0 answers