title: Devexpress GridView count selected rows
body: <p>I have a Devexpress Data Grid with a number of rows loaded. </p>
  
  <p>The following properties are set:</p>
  
  <p><code>MultiSelectNode=CheckBoxRowSelect</code></p>
  
  <p><code>MultiSelect=True</code></p>
  
  <p>I have a function that iterates through all the Rows and checks,  <code>gridview1.IsRowSelected(x) = True</code>.</p>
  
  <p>However the problem is, that even with the checkbox selected is checked it never shows as true.</p>
  
  <p>The following code returns <code>0</code></p>
  
  <p><code>Debug.Print(GridView1.GetSelectedRows().Count)</code></p>
  
  <p>Is there an easy way to check if the checkbox is checked?</p>
  
  <p>Thanks</p>