How to convert this code in devexpress VCL for Delphi : <p>Hello I want to convert this code into VCL Delphi: </p>

<pre><code>    // Create an empty list.
ArrayList rows = new ArrayList();
// Add the selected rows to the list.
for (int i = 0; i &lt; gridView1.SelectedRowsCount; i++) {
   if (gridView1.GetSelectedRows()[i] &gt;= 0)
      rows.Add(gridView1.GetDataRow(gridView1.GetSelectedRows()[i]));
}
try {
   gridView1.BeginUpdate();
   for (int i = 0; i &lt; rows.Count; i++) {
      DataRow row = rows[i] as DataRow;
      // Change the field value.
      row["Discontinued"] = true;                             
   }
}
finally {
   gridView1.EndUpdate();
} 
</code></pre>

<p>I am trying to do the same but in VCL there is not SelectedRowsCount or GetSelectedRows where can I find thoughs?</p>
