25/09/2006, 16:06
|
| | | Fecha de Ingreso: mayo-2006
Mensajes: 248
Antigüedad: 18 años, 8 meses Puntos: 0 | |
Problema con GridView.AllowPaging ... cargo mi grilla dinamicamente.....de acuerdo a las opciones q el usuario ingrese por unos combobox.......
sin embargo cuando intento seguir a mi segunda pagina me sale el sgte error
"The GridView 'GridView1' fired event PageIndexChanging which wasn't handled. Necesito declara mi evento PageIndexChanging ?¿?¿?
cargo de la sgte forma mi gridview...
private void LoadGridView(string SqlQuery)
{
SqlConnection Conexion = new SqlConnection(Utils.ReturnConnectionString());
try
{
GridView1.Visible = true;
GridView1.AllowPaging = true;
Conexion.Open();
SqlDataAdapter da = new SqlDataAdapter(SqlQuery, Conexion);
DataSet ds = new DataSet();
da.Fill(ds, "CPA_CAMPO_PARAM");
GridView1.DataSource = ds;
GridView1.DataBind();
}
catch (Exception msgException)
{
LblMensajes.Text = msgException.Message;
}
finally
{
Conexion.Close();
}
} |