Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Wpf DataGridControl + ComboBox editor in a column - how to clear the value?

$
0
0
I found a way of clearing the field and it is a better UX for the user but still I don't think it is "the proper" solution (?). What I do now is: on the button click (the button which is placed together with the combobox in the cell editor) the code behind (not ViewModel) checks the siblings of the sender (VisualTreeHelper.GetParent(...) then iterate through the children of the parent) and finds all combobox objects (there is one only). When a combobox is found, its SelectedItem property is set to null.

It works for me. But I am still interested to see what the "proper" way of doing it would be...

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>