1.前提分页后每页32条数据,分四列绑定,每列8条数据
Repeater1.DataSource = ds.Tables[0].Rows.OfType<DataRow>().Take(8).CopyToDataTable(); Repeater1.DataBind(); Repeater2.DataSource = ds.Tables[0].Rows.OfType<DataRow>().Skip(8).Take(8).CopyToDataTable(); Repeater2.DataBind(); Repeater3.DataSource = ds.Tables[0].Rows.OfType<DataRow>().Skip(16).Take(8).CopyToDataTable(); Repeater3.DataBind(); Repeater4.DataSource = ds.Tables[0].Rows.OfType<DataRow>().Skip(24).CopyToDataTable(); Repeater4.DataBind();
时间: 2024-10-27 10:38:36