private void DoSparrowChange2(object sender, EvA_SelectedTreeItem e)
 {
     isValueChange = true;
     if (_curSrcMan != null && _curRowNum >= 0)
         SetColumnValueAtRow(_curSrcMan, _curRowNum, e.pText);
     base.ColumnStartedEditing(pSparrow);
 }
        protected override object GetColumnValueAtRow(CurrencyManager source, int rowNum)
        {
            object obj = base.GetColumnValueAtRow (source, rowNum);

            string id = string.Empty;
            try {id = obj.ToString();}
            catch {}
            object ret = string.Empty;
            if (id.Length > 0)
            {
                TreeNode tn = null;
                if (pIsPDCFormat)
                    tn = pSelectFromTV.pTreeView.SearchByCode(PlaceCode.PDC2PlaceCode(id));
                else
                    tn = pSelectFromTV.pTreeView.SearchByCode(CommandAS.Tools.CASTools.ConvertToInt32Or0(id));
                if (tn != null)
                {
                    CASTreeItemData tid = tn.Tag as CASTreeItemData;
                    if (tid != null)
                        ret = new EvA_SelectedTreeItem(tid.pPC, tn.Text, tn.Tag);
                }
            }

            return ret;
        }