using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class test_gridview1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		
    }

	protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
	{
		int id_compte_selectionne = (int) GridView1.SelectedDataKey.Value;

		lbl_info.Text = string.Format("PageIndex = {0}<br>PageCount = {1}<br>PageSize = {2}<br>SelectedIndex = {3}",
			GridView1.PageIndex,
			GridView1.PageCount,
			GridView1.PageSize,
			GridView1.SelectedIndex);
	}
}
