private Column CreateColumn(DataColumn column)
        {
            Column c = new Column();

            c.Name     = column.ColumnName;
            c.Alias    = column.Caption;
            c.DataType = column.DataType;
            c.SetBindableControlType(c.DataType);
            return(c);
        }
        private Column CreateListValueColumn(Column column)
        {
            Type itemType = ListBindingHelper.GetListItemType(column.DataType);

            // find existing column
            Column childColumn = column.FindByPropName("Value");

            // column not found, create new one with default settings
            if (childColumn == null)
            {
                childColumn         = new Column();
                childColumn.Name    = "Value";
                childColumn.Enabled = IsSimpleType(itemType);
                childColumn.SetBindableControlType(itemType);
            }

            childColumn.DataType       = itemType;
            childColumn.PropName       = "Value";
            childColumn.PropDescriptor = null;

            return(childColumn);
        }