private void CarregarGrid() { Lancamento l = new Lancamento(); l.usuario = Usuario; this.grdLancamento.DataSource = l.listar(); this.grdLancamento.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { base.VerificarSessao(); totalizador = 0; if (!this.IsPostBack) { Lancamento l = new Lancamento(); l.usuario = Usuario; this.gvLancamento.DataSource = l.listar(); this.gvLancamento.DataBind(); } }