如何在WndowsForms中的DataGridView中进行分页? [英] How to to Paging in DataGridView in WndowsForms?

查看:88
本文介绍了如何在WndowsForms中的DataGridView中进行分页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个DataGridView有2个按钮Prev和Next.Here在我的DataGridView中我正在使用Paging Concept.I有3个标签显示窗口号(1,2 ..) ,记录计数(每个页面只有5个记录)并显示从到。在第1页我得到从(1-5)值当我点击下一页时结果应该是6-10和第3页应该显示为11-15。我没有得到如上所示的第二页结果。

(这里我的数据库包含表中的15条记录)

提前谢谢。

Hi,
I have One DataGridView with 2 buttons Prev and Next.Here in my DataGridView I am using Paging Concept.I have 3 labels to show window no.(1,2..),records count(each page has 5 records only)and showing from to to.In the 1st page I am getting from to to(1-5) value when I click next page the result should as 6-10 and the 3rd page should show as 11-15.I didn't get the 2nd page result as shown above.
(Here my Database consists of 15 records in the Table)
Thanks in advance.

推荐答案

Google [ ^ ]是您的朋友!使用它。



CodeProject KnowledgeBase返回,例如:

使用LINQ在C#中分页DataGridView [ ^ ]

在WinForm应用程序中的DataGridView中进行寻呼的简单方法 [ ^ ]
Google[^] is your friend! Use it.

CodeProject KnowledgeBase returns, for example:
Paging DataGridView in C# using LINQ[^]
A Simple Way for Paging in DataGridView in WinForm Applications[^]


这篇关于如何在WndowsForms中的DataGridView中进行分页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆