title: XtraGrid has been modified
body: <p>I need to know if an <code>XtraGrid</code> has been modified (value changed or rows added).</p>
  
  <p>I can make a <code>boolean var</code> and change it on <code>GridView_CellValueChanged</code>:</p>
  
  <pre><code>void suppGridView_CellValueChanged(object sender, CellValueChangedEventArgs e) {
      isModified = true;
  }
  </code></pre>
  
  <p>or<br>
  I can read all DataSource and check the <a href="http://msdn.microsoft.com/en-us/library/system.data.datarow.rowstate.aspx" rel="nofollow">DataRow.RowState</a> property value (<code>Modified</code> or <code>Added</code>):</p>
  
  <pre><code>foreach (DataRow row in dataSource.Rows) {
      if (row.RowState == DataRowState.Modified || row.RowState == DataRowState.Added) 
          return true;
  }
  </code></pre>
  
  <p>Do you know a simpler method?</p>