title: Apache POI: How to Retrieve Changed Rows in Java
body: <p>Hey I'd like to know that is it possible to find only changed/updated Microsoft <strong>Excel/Spreadsheet</strong> rows using Apache POI in Java?</p>
  
  <p>Its possible in C# and VB (<a href="https://msdn.microsoft.com/en-us/library/thc1eetk.aspx?cs-save-lang=1&amp;cs-lang=csharp#code-snippet-1" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/thc1eetk.aspx?cs-save-lang=1&amp;cs-lang=csharp#code-snippet-1</a>)</p>
  
  <blockquote>
    <p>Each row in a data table has a <strong>RowState</strong> property that keeps track of the current state of that row using the values in the <strong>DataRowState</strong> enumeration. You can return changed rows from a dataset or data table by calling the GetChanges method of a <strong>DataSet</strong> or <strong>DataTable</strong>. You can verify changes exist prior to calling GetChanges by calling the <strong>HasChanges</strong> method of a dataset.</p>
  </blockquote>