protected void SupplierFormView_ModeChanging(object sender, FormViewModeEventArgs e)
 {
     SupplierFormView.ChangeMode(e.NewMode);
     bindgrid();
     if (e.NewMode == FormViewMode.Edit)
     {
         SupplierFormView.AllowPaging = false;
     }
     else
     {
         SupplierFormView.AllowPaging = true;
     }
 }
 protected void SupplierFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     SupplierFormView.ChangeMode(FormViewMode.ReadOnly);
 }