Пример #1
0
        /// <summary>
        ///     Adds the specified column.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <returns>GridColumnBuilder&lt;T1&gt;.</returns>
        /// TODO Edit XML Comment Template for Add
        public GridColumnBuilder <T1> Add(GridColumn <T1> column)
        {
            var col = new GridColumnBuilder <T1>
            {
                GridColumn = column
            };

            ColumnBuilders.Add(col);
            return(col);
        }
Пример #2
0
        /// <summary>
        ///     Adds the specified column name.
        /// </summary>
        /// <param name="columnName">Name of the column.</param>
        /// <param name="headerText">The header text.</param>
        /// <param name="valueExpression">The value expression.</param>
        /// <returns>GridColumnBuilder&lt;T1&gt;.</returns>
        /// TODO Edit XML Comment Template for Add
        public GridColumnBuilder <T1> Add(
            string columnName,
            string headerText,
            Func <T1, string> valueExpression)
        {
            var col = new GridColumnBuilder <T1>(
                columnName,
                headerText,
                valueExpression,
                _columnDefaults);

            ColumnBuilders.Add(col);

            return(col);
        }