Exemplo n.º 1
0
        public void MarsTigerSetDropListModeValue(object strData)
        {
            Logger.logBegin("MarsTigerSetDropListModeValue");
            UltraGrid     objGrid  = (UltraGrid)base.SourceControl;
            UltraGridCell objCell  = objGrid.ActiveCell;
            string        strError = "";

            if (objCell == null)
            {
                strError = string.Format("No Active cell before change value for droplist:[{0}]", strData);
                QtpShowException(strError);
                return;
            }
            objCell.SetValue(strData, false);
            Logger.logEnd("MarsTigerSetDropListModeValue");
        }
Exemplo n.º 2
0
        private void ucTreeView1_TreeViewIDChanged(object sender, UCTreeView.TreeViewEventArgs e)
        {
            //   Use the BeforeEnterEditMode event to position the edit controls
            UltraGridCell objCell = this.ultraGrid1.ActiveCell;

            //   This should be impossible, but its good practice to check
            //   to make sure there is an active cell before continuing
            if (objCell == null)
            {
                return;
            }
            //if (VWA4Common.VWACommon.IsAllowEditVersion() && Regex.IsMatch(objCell.Column.Key, "TypeID"))
            if (Regex.IsMatch(objCell.Column.Key, "TypeID"))
            {
                objCell.SetValue(e.ID, true);
                ultraTextEditor1.CloseEditorButtonDropDowns();
            }
        }