public string GetEditValue()
 {
     if (allowCheckBox)
     {
         if (dicValues == null)
         {
             dicValues = TSCommon.GetTreeListCheckedKeyValue(treeList1);
         }
         StringBuilder sb = new StringBuilder();
         int           i  = 1;
         foreach (object item in dicValues.Keys)
         {
             if (item != null)
             {
                 sb.AppendFormat("{0}", item);
             }
             if (i < dicValues.Count)
             {
                 sb.Append(",");
             }
             i++;
         }
         return(sb.ToString());
     }
     else
     {
         DataRowView drv = treeList1.GetDataRecordByNode(treeList1.FocusedNode) as DataRowView;
         if (drv != null)
         {
             object val = drv[treeList1.KeyFieldName];
             return(val == null ? null : val.ToString());
         }
     }
     return(null);
 }