//view Category Dtabase tables coloums values
 private void refeshbutton_Click(object sender, EventArgs e)
 {
     try
     {
         CategoryClass oobj = new CategoryClass();
         //Datas Set obj put to the Dtaview grid auto rende all the colums and values.
         ///you dont create custom table colums in Data grid grid
         //variable of data grid view+daat source
         dataGridView1.DataSource = oobj.categoryViewAll().Tables[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }