English 中文(简体)
后继刷新 Combo 框查询
原标题:Refresh Combo Box query after another

表格上有两个组合框。 一个是起始日期, 一个是结束日期。 当选择开始日期时, 它会将结束日期限制在大于选定开始日期的日期。 这工作正确, 但当选择新的开始日期时, 我如何获得结束日期查询以刷新? 提前感谢 。

最佳回答

我想你可以使用端DateBox。 限制值后请回答 。

问题回答

口袋是正确的,虽然添加

Me.EndDateBox = Null
Me.EndDateBox.Requery

假设您的查询以某种方式限制允许的日期。 添加“ null” 后可以确保其中的任何条目不再存在; requery 有可能使用旧( 不正确) 输入的正确查询。 这迫使用户在组合框中输入一个新的、 隐含正确值 。





相关问题
WPF Datagrid, Setting the background of combox popup

I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid. I ve edited the Template for a normal Combobox and it works great for selected ...

How to insert ComboBox item into ListBox? [winforms]

The question is very simple, How to insert ComboBox selected item into ListBox using c#? I have tried with this: listbox.Items.Add(combobox.SelectedItem); and some other permutations but it always ...

How do I bind a ComboBox to a one column list

I ve seen how to bind a ComboBox to a list that has columns like this: ItemsSource="{Binding Path=Entries}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding Path=Entry}" But ...

Wpf Combobox Limit to List

We are using Wpf Combobox to allow the user to do the following things: 1) select items by typing in the first few characters 2) auto complete the entry by filtering the list 3) suggesting the first ...

热门标签