public void GridViewLoadAddressDataByUser()
        {
            DataTable dtResult = addressBLL.GetUserAddress(int.Parse(Session["UserId"].ToString()));

            AddressGrid.DataSource = dtResult;
            if (dtResult.Rows.Count == 0)
            {
                string msg = "Você ainda não possui endereço cadastrado, clique no botão para cadastrar";
                snackbarError.Text    = msg;
                snackbarError.Visible = true;
            }
            AddressGrid.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["UserEmail"] == null || Session["UserId"] == null || Session["UserType"] == null || Session["UserEmail"].ToString().Length == 0 || Session["UserId"].ToString().Length == 0 ||
         Session["UserType"].ToString().Length == 0)
     {
         Response.Redirect("index.aspx");
     }
     GridViewLoadDataByUser();
     GridViewLoadAddressDataByUser();
     if (!Page.IsPostBack)
     {
         ClientGrid.DataBind();
         AddressGrid.DataBind();
     }
 }
 private void LoadGrid()
 {
     DSAddress.Bindings.Add(new Sage.Platform.WebPortal.Binding.WebEntityListBinding("Addresses", AddressGrid));
     DSAddress.SourceObject = EntityService.GetEntity();
     AddressGrid.DataBind();
 }