title: C# Determine how a row/data is added to a DataGridView
body: <p>I have a use case where I am showing data from database in DataGridView, but when I add new rows on the UI (there is no code for adding new row, when I click the button I get all rows from DataGridView - old ones from database and new ones added on the UI), I need to know what rows are added from the UI. Is there a way to know it without checking in database and comparing it? I would like to know it from the UI. I have tried with ISNewRow() but it is true only for the last row.</p>