public void Ana_GelListe()
 {
     try
     {
         DataTable dt = K.Ana_Kategori_List();
         if (dt.Rows.Count != 0)
         {
             AnaKategori_Grid.DataSource = dt;
             AnaKategori_Grid.DataBind();
             GridKayitYokDiv.Visible = false;
         }
         else
         {
             GridKayitYokDiv.Visible = true;
         }
     }
     catch (Exception)
     {
         KayitTamam.Visible = false;
         HataVar.Visible    = true;
     }
 }
 protected void AnaKategori_Grid_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     AnaKategori_Grid.PageIndex = e.NewPageIndex;
     Ana_GelListe();
     AnaKategori_Grid.DataBind();
 }