Esempio n. 1
0
        /// <summary>
        /// Gets the raw (unformatted) value stored in this row at a given column.
        /// </summary>
        /// <param name="col"><see cref="Column"/> that contains the value.</param>
        /// <returns>Raw value stored in the cell.</returns>
        public virtual object GetDataRaw(Column col)
        {
            // get value from Binding/PropertyInfo
            var value = GetData(col);

            // handle bound values with StringFormat (they become strings)
            if (value is string && DataItem != null &&
                col.Binding != null && !string.IsNullOrEmpty(col.Format))
            {
                col.TryChangeType(ref value);
            }

            return(value);
        }