コード例 #1
0
        public static GridLookUpEditBase SetupAccountEditor(this GridLookUpEditBase editor)
        {
            editor.Properties.DisplayMember = "AccountName";
            editor.Properties.NullText = "Select Account";
            editor.Properties.ValueMember = "AccountID";
            editor.EditValue = null;
            editor.Properties.View = InitializeAccountGridView();

            var accounts = new Account();
            accounts.LoadByUser(CurrentContext.UserId);
            editor.Properties.DataSource = accounts.DefaultView;
            return editor;
        }