title: How to extract data from a sql datatable using c#
body: <p>I'm working on some automatisms, and i need to extract data from a datatable that my boss gave me, this one:</p>
  
  <p><a href="https://i.stack.imgur.com/QvWRg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QvWRg.png" alt="enter image description here"></a></p>
  
  <p>as you see there, there are three columns the first called quatro, the second called tres and last one called actualizado, don't mind the third one for now, i have a code like this:</p>
  
  <pre><code>Gdriver.Navigate().GoToUrl("http://www.codigo-postal.pt/");
  IWebElement searchInput1 = Gdriver.FindElement(By.Id("cp4"));
  searchInput1.SendKeys("4715");//4730
  IWebElement searchInput2 = Gdriver.FindElement(By.ClassName("cp3"));
  searchInput2.SendKeys("374");//324
  searchInput2.SendKeys(OpenQA.Selenium.Keys.Enter);
  </code></pre>
  
  <p>so what i want is, insert the numbers from the columns quatro and tres into cp4 and cp3, respectively, while there are numbers.</p>
  
  <p>If anyone helped me, would be really appreciated, thanks!</p>