Beispiel #1
0
        /// <summary>
        /// Gets the control 'value'
        /// from the supplied cell value.
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public virtual string GetValue(object value)
        {
            GridPanel panel = _Cell.GridPanel;

            if (value == null ||
                (panel.NullValue == NullValue.DBNull && value == DBNull.Value))
            {
                return("");
            }

            if (_Cell.IsValueExpression == true)
            {
                value = _Cell.GetExpValue((string)value);
            }

            return(Convert.ToString(value));
        }