title: WCF service returning DataSet
body: <p>I have this WCF service:</p>
  
  <pre><code>public DataSet GetInfo()
  {
          DataTable dt = new DataTable("Tbl");
          DataSet ds = new DataSet("Set");        
          OdbcCommand OdbcCmd;
          OdbcCmd = new OdbcCommand("select * FROM Products where id = 'JBE-235'", OdbcConn);          
          OdbcConn.Open();
          dt.Load(OdbcCmd.ExecuteReader());
          ds.Tables.Add(dt);           
          OdbcConn.Close();          
          return ds;
  }
  </code></pre>
  
  <p>But I've read that returning a <code>DataSet</code> from a WCF service is a bad practice, I have a desktop application and I need to fill a <code>DataGridView</code> with the service's result.</p>
  
  <pre><code>private void ButtonInfo_Click(object sender, EventArgs e)
  { 
       WCFService service = new WCFService();
       DataGridView1.DataSource = service.GetInfo();
       service.Close();
  }
  </code></pre>
  
  <p>What kind of data type should I get from the WCF service to fill the <code>DataGridView</code> correctly?</p>
  
  <p>Thanks in advance.</p>