Tried editing it but it wont allow to save the edit.
In a table there are no row numbers as in a spreadsheet.
However, there is a field that unequivocally identifies each feature by assigning a number, to meet performance and integrity (data and referential) requirements. That field is usually called fid. Nothing ensures, if it is not specified in the query to the table, the order that the rows of a table should take when they are shown.
In the Qgis table editor, that kind of spreedsheet row numbers are shown only for convenience, perhaps to keep a visible account of the features.