adding a row to a data table at the top?

right now i refresh the entire data table but this isn’t a great user experience so i want to be able to slide a new record at the top without the whole table refreshing. Is there a way to do that?