title: how to show custom message on empty datagridview
body: <p>in my window form, i showing details of category to users using <code>datagridview</code>, but i also want to show a custom message when in my table there is no record found , then i want to show a custom message like 
  "No Records founds" .
  this message should be in <code>datagrird</code> view  like if you are familiar with <code>asp</code> where there is empty <code>data template</code> to show custom message in <code>gridview</code>
  here is code for showing data in my <code>datagridview</code></p>
  
  <pre><code>public void getData()
          {
              try
              {
                  con = new SqlConnection(str);
                  con.Open();
                  string getAll = "select (CatID) as [ID],CategoryName as [Category Name] from Category order By CategoryName";
                  SqlCommand cmd = new SqlCommand(getAll, con);
                  SqlDataAdapter da = new SqlDataAdapter(cmd);
                  DataSet ds = new DataSet();
                  da.Fill(ds, "Category");
                  dataGridView1.DataSource = ds;
                  dataGridView1.DataMember = ds.Tables[0].ToString();
                  con.Close();
              }
              catch (Exception ex)
              {
                  MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
              }
          }
  
  and i called this method on form load.
  </code></pre>