title: Microsoft Visual Studio Form Application - mysql error
body: <p>I want to SELECT data from database into my Form Application, but I receive an error. </p>
  
  <p><img src="https://i.stack.imgur.com/AoVcK.png" alt="enter image description here"></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using MySql.Data.MySqlClient;
  
  namespace login
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
          private void Form1_Load(object sender, EventArgs e)
          {
              MySqlConnection conn = DB_connect.getConect();
              MySqlCommand command = conn.CreateCommand();
              command.CommandText = "SELECT * FROM expeditori";
              conn.Open();
              DataSet a = new DataSet();
              MySqlDataAdapter b = new MySqlDataAdapter();
              b.Fill(a, "data");
              dataGridView1.DataSource = a;
              dataGridView1.DataMember = "data";
              conn.Close();
          }
      }
  }
  </code></pre>