Example #1
0
 private void lkpEdtCategoryID_EditValueChanged(object sender, System.EventArgs e)
 {
     if (lkpEdtCategoryID.EditValue != null && lkpEdtCategoryID.Text.Length > 0)
     {
         int categoryID = ACMS.Convert.ToInt32(lkpEdtCategoryID.EditValue);
         lkpEdtPackageCode.Properties.Columns.Clear();
         myPackageCodeLookupBuilder = new ACMS.XtraUtils.LookupEditBuilder.PackageCodeLookupEditBuilder(myPackageCode.GetAllValidPackageBaseCategory(categoryID), lkpEdtPackageCode.Properties);
         lkpEdtPackageCode.Enabled  = true;
     }
     else
     {
         lkpEdtPackageCode.Enabled = false;
     }
 }