title: XamDataGrid Column position index: Field.Index or Field.ActualPosition.Column
body: <p>Let's imagine that grid already bound to a data rows and has multiple columns.</p>
  
  <p>I found that I can retrieve a given column position index by:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var fieldsLayout = grid.FieldLayouts[0];
  var columnField = fieldsLayout.Fields.Single(f =&gt; f.Name == "Column Name");
  int columnIndex = ... see below
  </code></pre>
  
  <ul>
  <li><code>columnField.Index</code> - If user does not changed an initial columns order</li>
  <li><code>columnField.ActualPosition.Column</code> - If user has changed an initial columns order</li>
  </ul>
  
  <p>The question is how to know whether an user has changed initial columns order?</p>