I have an application I'm upgrading from an old control set where this worked before.
The requirement that I have is that for each row, when a value is entered in the first column, I need to filter down the available items in a second combobox column on that row. This changes row per row depending on what was entered in the first column.
eg: If I enter "colour" in the first column, I need to see colours in the combobox. If I enter "shape" in the first column, I need to see shapes, in the combobox.
It's functionally working right now by just setting the datasource for the combobox to be a DataTables DefaultView that I'm just adjusting the row filter for.
//Set datasource combo.DataSource = dt.DefaultView; //Later on update filter to change values dt.DefaultView.RowFilter = "some_id_column = " + id_to_filter_by;
But, every time I select a different row that doesn't match the filter pattern, the second column looks blank as the RowFilter changes. The value is retained as part of the backing grid datasource, but it clumsy as the display text can look blank on any unselected rows.
Is there any way around this by changing the filter or data source directly on the cells instead of the column? That way I could adjust it for each row without it effecting all rows?