public override void UpdateComboBox(ComboBox cbb)
        {
            ComboLookupData cbx = cbb as ComboLookupData;

            if (cbx != null && Query.DatabaseConnection != null)
            {
                string sSQL = Query.MakeSelectionQuery(null);
                if (!string.IsNullOrEmpty(sSQL))
                {
                    string s = cbx.Text;
                    if (cbx.LoadData(Query, displayFieldName))
                    {
                        cbx.SelectedIndex = cbx.FindStringExact(s);
                    }
                }
            }
        }
 public override ComboBox MakeComboBox()
 {
     if (Query.DatabaseConnection != null)
     {
         string sSQL = Query.MakeSelectionQuery(null);
         if (!string.IsNullOrEmpty(sSQL))
         {
             ComboLookupData cbx = new ComboLookupData();
             cbx.SetUpdateFieldIndex(this.nUpdatePos);
             if (cbx.LoadData(Query, this.displayFieldName))
             {
                 return(cbx);
             }
         }
     }
     return(null);
 }