UCTestPage.cs
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test.UC
{
[ToolboxItem(false)]
public partial class UCTestPage : UserControl
{
public UCTestPage()
{
InitializeComponent();
}
private void UCTestPage_Load(object sender, EventArgs e)
{
List<object> lstPage2 = new List<object>();
for (int i = 0; i < 1000; i++)
{
lstPage2.Add(i);
}
ucPagerControl21.PageSize = 10;
ucPagerControl21.DataSource = lstPage2;
this.ucPagerControl1.PageSize = 10;
this.ucPagerControl1.StartIndex = 0;
ucPagerControl1.DataSource = lstPage2;
this.ucPagerControl1.FirstPage();
ucPagerControl22.PageCount = 10;
ucPagerControl22.PageIndex = 1;
ucPagerControl2.PageCount = 10;
ucPagerControl2.PageIndex = 1;
}
}
}