基于鼠标滚动在winfom面板中加载员工详细信息 [英] Loading Employee details in winfom panel based on mouse scroll

查看:76
本文介绍了基于鼠标滚动在winfom面板中加载员工详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的winform应用程序中,我正在调用DB以获取Employee详细信息列表。我必须在面板中显示每位员工的详细信息。在面板中,场景如下:



最初将显示10条记录,当面板滚动条滚动到最后时,接下来应显示10条记录并继续。



我同时收到所有员工的详细信息。如何根据上述要求显示数据?

In my winform Application I am doing a call to DB to get the list of Employee details. I have to show the details of each employee in the panel. In panel the scenario is something like:

Initially 10 record will be displayed and when scrollbar of panel is scrolled till last, next 10 records should be displayed and continue like that.

I am getting all the employee details at same time. How to show the data as per the above requirement ?

推荐答案

你一定要使用ListView Control的'VirtualMode属性:[ ^ ]。



或者使用另一个支持按需加载的Control;或编写自己的虚拟加载代码。



什么阻止您搜索CodeProject并检查这些文章:[ ^ ]?
You should definitely use the ListView Control's 'VirtualMode property: [^].

Or use another Control that supports on-demand loading; or write your own virtual loading code.

What is stopping you from searching CodeProject and examining these articles: [^] ?


这篇关于基于鼠标滚动在winfom面板中加载员工详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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