I have gridview with number of rows i.e 124,167..more numbers. i need to split specifi rows with one gridview. For example 40 rows per gridview.
How can i achieve this?
if (Ds.Tables(0).Rows.Count > 0) {
gridview1.DataSource = Ds.Tables(0);
gridview1.DataBind();
}
Example :
-------------------------------------------
Sno | Name | Department
-------------------------------------------
1 AAA IT
2 BBB ECE
3 CCC MECH
4 DDD CSE
5 EEE IT
6 FFF EEE
7 III CSE
--------------------------------------------
Split into multiple grid views.
-------------------------------------------
Sno | Name | Department
-------------------------------------------
1 AAA IT
2 BBB ECE
3 CCC MECH
4 DDD CSE
--------------------------------------------
-------------------------------------------
Sno | Name | Department
-------------------------------------------
5 EEE IT
6 FFF EEE
7 III CSE
--------------------------------------------