title: Compare values in an array with the id of my data in the database and display in a datagrid
body: <p>I'm new in C# and I have an array with different values as shown below</p>
  
  <pre><code>int[] array = { 1, 2, 3, 4, 5, 6 };
  </code></pre>
  
  <p>I need to do is to relate the value of the array with the id of a data in my database in Sqlserver, Example, the first value for my array is 1, and the value from my data Id is  also 1, I need show in a DataGrid the the name or information that this id holds.</p>
  
  <p><strong>DataBase Example:</strong></p>
  
  <ul>
  <li><p>id 1 , name Francisco, serial_number 1234</p></li>
  <li><p>id 2 , name Claudio, serial_number 4321</p></li>
  </ul>