2 Star 3 Fork 0

陈伟 / DgvPage

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

DgvPage

Description

C# DataGridView分页控件

控件样式

.net框架

.net 3.5

数据源

  1. List
  2. DataTable

使用

1、DataGridView 设置对应列关联字段

DataGridView 设置

2、选取要显示的DataGridView

绑定DataGridView

3、

          List<object> list = new List<object>();
            for (int i = 0; i < 98; i++)
            {
                Info info = new Info
                {
                Title="标题"+(i+1).ToString(),
                Content= "内容" + (i + 1).ToString(),
                IsShow=i%2==0
                };
                list.Add(info);
            }
          //刷新跳转第一页
            controlDgvPage1.SetDataSource(list);
         //刷新继续保留着当前页
          // controlDgvPage1.SetDataSource(list,false);

4、完成显示

完成

Comments ( 0 )

Sign in for post a comment

About

C# DataGridView分页控件 spread retract
C#
AGPL-3.0
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
C#
1
https://gitee.com/chenwei_MZ/dgv-page.git
git@gitee.com:chenwei_MZ/dgv-page.git
chenwei_MZ
dgv-page
DgvPage
master

Search