Bonjour,
j'ai un datagrid qui a plein de lignes alors je voudrai faire la pagination comme la faire svp ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 connecter(); cmd2.Connection = con; cmd2.CommandText = "SELECT Nom,Designation,Num4,Num6 from Bureau,Direction,Ch6,Ch4 where Bureau.BIDD=Direction.IDD AND Ch4.IDB=Bureau.IDB AND Ch6.IDB=Bureau.IDB "; da.SelectCommand = cmd2; if (ds.Tables["DTBB"] != null) { ds.Tables["DTBB"].Clear(); } da.Fill(ds, "DTBB"); dg.DataSource = ds.Tables["DTBB"]; deconnecter();
Partager