protected void GvPreCargaMasivo_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { ASPxGridView cPanel = (ASPxGridView)sender; cPanel.JSProperties["cpPanelMensaje"] = null; switch (e.Parameters.Trim()) { case "nuevo": cPanel.JSProperties["cpPanelMensaje"] = "nuevoLimpio"; GvPreCargaMasivo.DataSource = (DataTable)Page.Session["dtArchivo"]; GvPreCargaMasivo.DataBind(); break; case "limpiar": cPanel.JSProperties["cpPanelMensaje"] = "nuevoLimpio"; Page.Session["dtArchivo"] = null; GvPreCargaMasivo.DataBind(); break; case "Insertar": cPanel.JSProperties["cpPanelMensaje"] = InsertarCuentaCorriente(); break; default: break; } }
protected void GvPreCargaMasivo_PageIndexChanged(object sender, EventArgs e) { if (Page.Session["dtArchivo"] != null) { GvPreCargaMasivo.DataSource = (DataTable)Page.Session["dtArchivo"]; GvPreCargaMasivo.DataBind(); } }