Group: StrataFrame Users
Posts: 322,
Visits: 529
|
Hi Edhy.
Thanks for pointing me in the right direction. This works:
private void brwProjects_SearchValueChanged(object sender, MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialogSearchValueChangedEventArgs e)
{
if (e.SourceSearchField.FieldName.Equals("plant", StringComparison.OrdinalIgnoreCase) &&
((ComboBox)e.SourceControl).SelectedIndex > 0)
{
e.AllVisibleSearchControls["dept"].Enabled = true;
object[] oParms = new object[1];
oParms[0] = ((ComboBox)e.SourceControl).SelectedValue.ToString().Trim();
((MicroFour.StrataFrame.UI.Windows.Forms.ComboBox)e.AllVisibleSearchControls["dept"]).Requery(oParms);
}
}
|