diff --git a/Examples/UICatalog/Scenarios/MultiColouredTable.cs b/Examples/UICatalog/Scenarios/MultiColouredTable.cs index cf013f86c0..a8992fcc7f 100644 --- a/Examples/UICatalog/Scenarios/MultiColouredTable.cs +++ b/Examples/UICatalog/Scenarios/MultiColouredTable.cs @@ -131,7 +131,7 @@ private bool GetText (string title, string label, string initialText, out string private class TableViewColors : TableView { - protected override void RenderCell (Attribute cellColor, string render, bool isPrimaryCell) + protected override void RenderCell (Attribute cellColor, string render, bool isPrimaryCell, int row, int rowToRender, int columnToRender) { int unicorns = render.IndexOf ("unicorns", StringComparison.CurrentCultureIgnoreCase); int rainbows = render.IndexOf ("rainbows", StringComparison.CurrentCultureIgnoreCase); diff --git a/Terminal.Gui/Views/TableView/TableView.cs b/Terminal.Gui/Views/TableView/TableView.cs index a269d69d0a..de5af276f6 100644 --- a/Terminal.Gui/Views/TableView/TableView.cs +++ b/Terminal.Gui/Views/TableView/TableView.cs @@ -1299,7 +1299,10 @@ protected virtual bool OnCellActivated (CellActivatedEventArgs args) /// /// /// - protected virtual void RenderCell (Attribute cellAttribute, string render, bool isPrimaryCell) + /// + /// + /// + protected virtual void RenderCell (Attribute cellAttribute, string render, bool isPrimaryCell, int row, int rowToRender, int columnToRender) { // If the cell is the selected col/row then draw the first rune in inverted colors // this allows the user to track which cell is the active one during a multi cell @@ -2003,7 +2006,7 @@ private void RenderRow (int row, int rowToRender, ColumnToRender [] columnsToRen if (cellColor.HasValue) { - RenderCell (cellColor.Value, render, isPrimaryCell); + RenderCell (cellColor.Value, render, isPrimaryCell, row, rowToRender, current.Column); } // Reset scheme to normal for drawing separators if we drew text with custom scheme