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
--------------------------------------------

Vinay SinghRank #604 · 4K reputationPosted Jul 12, 2016, 1:04 AM EDT
Nested GridView Using c#.Net In Asp.Net
Vijay134 reputationPosted Jul 12, 2016, 1:26 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 12, 2016, 1:32 AM EDT