Ejemplo n.º 1
0
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
        {
            if (destType == typeof(string) && value is ImageTable)
            {
                // Cast the value to an Employee type
                ImageTable emp = (ImageTable)value;

                // Return department and department role separated by comma.
                return(emp.ToString());
            }
            return(base.ConvertTo(context, culture, value, destType));
        }