public MBGridColumnConfiguration( Expression <Func <TRowData, object> > backgroundColorExpression = null, Color?backgroundColorHeader = null, MB_Grid_ColumnType columnType = MB_Grid_ColumnType.Text, Expression <Func <TRowData, object> > dataExpression = null, Expression <Func <TRowData, object> > foregroundColorExpression = null, Color?foregroundColorHeader = null, string formatString = null, bool isPMI = false, Expression <Func <TRowData, object> > supressDisplayExpression = null, string title = "", int width = 10) { BackgroundColorExpression = backgroundColorExpression?.Compile();// ?? Color.LightGray; BackgroundColorHeader = backgroundColorHeader ?? Color.LightGray; ColumnType = columnType; DataExpression = dataExpression?.Compile(); ForegroundColorExpression = foregroundColorExpression?.Compile();// ?? Color.Black; ForegroundColorHeader = foregroundColorHeader ?? Color.Black; FormatString = formatString; IsPMI = isPMI; SupressDisplayExpression = supressDisplayExpression?.Compile(); Title = title; Width = width; }
public MBGridColumnConfiguration( Color?backgroundColor = null, bool bold = false, MB_Grid_ColumnType columnType = MB_Grid_ColumnType.Text, Expression <Func <TRowData, object> > dataExpression = null, Color?foregroundColor = null, string formatString = null, bool supressDisplay = false, string title = "", int width = 10) { BackgroundColor = backgroundColor ?? Color.LightGray; Bold = bold; ColumnType = columnType; DataExpression = dataExpression?.Compile(); ForegroundColor = foregroundColor ?? Color.Black; FormatString = formatString; SupressDisplay = supressDisplay; Title = title; Width = width; }