void DecorateGrid() { IDataGridHelper helper = DataGridHelper.GetInstance(); helper.SetAutoResizeCells(ref this.dGridLogs); helper.SetColumnToDateFormat(this.dGridLogs.Columns[LogEntriesController.CREATED_INDEX]); helper.SetColumnToTimeFormat(this.dGridLogs.Columns[LogEntriesController.TIME_INDEX]); helper.SetColumnToDayFormat(this.dGridLogs.Columns[LogEntriesController.DAY_INDEX]); this.dGridLogs .Columns[LogEntriesController.DESCRIPTION_INDEX] .AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; }
void DecorateGrid() { this.dGridLogs.DefaultCellStyle.WrapMode = DataGridViewTriState.True; this.dGridLogs.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; IDataGridHelper helper = DataGridHelper.GetInstance(); helper.SetAutoResizeCells(ref this.dGridLogs); helper.SetColumnToDateFormat(this.dGridLogs.Columns[SummaryLogsController.CREATED_INDEX], "yyyy-MM-dd"); helper.SetColumnToDayFormat(this.dGridLogs.Columns[SummaryLogsController.DAY_INDEX]); this.dGridLogs .Columns[SummaryLogsController.DESCRIPTION_INDEX] .AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; }