Need displaying last inserted id column dynamically when data insert in the database.
Please could you clarify which screen you're trying to modify please? Grid.php isn't specific enough.
If you're looking to add a column to admin sales order grid. Here's a good stackoverflow answer which will point you in a few different directions: https://magento.stackexchange.com/a/17406/26