diff --git a/src/Spectre.Console/Widgets/Table/TableRowCollection.cs b/src/Spectre.Console/Widgets/Table/TableRowCollection.cs index 6510c81a6..b8f2f93bf 100644 --- a/src/Spectre.Console/Widgets/Table/TableRowCollection.cs +++ b/src/Spectre.Console/Widgets/Table/TableRowCollection.cs @@ -58,7 +58,7 @@ public int Add(IEnumerable columns) { var row = CreateRow(columns); _list.Add(row); - return _list.IndexOf(row); + return _list.Count - 1; } }