Removing deprecated getDataItem method in favour for getRowByIndex.