public fBFCode(Form f) : base(f) { InitializeComponent(); ucBFCode1.AtMng = AtMng; aCBFBindingSource.DataMember = AtMng.acMng.DB.ACBF.ToString(); aCBFBindingSource.DataSource = AtMng.acMng.DB; atriumBE.FileManager FM = AtMng.GetFile(); aCBFGridEX.DropDowns["ddBFType"].SetDataBinding(FM.Codes("BFType"), ""); aCBFGridEX.DropDowns["ddRoleCode"].SetDataBinding(FM.AtMng.GetGeneralRec("select * from vRoleuContactType where obsolete=0"), ""); FM.Dispose(); int id = CurrentRow().ACBFId; ucBFCode1.DataSource = new DataView(AtMng.acMng.DB.ACBF, "ACBFId=" + id.ToString(), "", DataViewRowState.CurrentRows); }