VPaged.WF
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package VPaged.WF --version 1.0.4
NuGet\Install-Package VPaged.WF -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VPaged.WF" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VPaged.WF --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VPaged.WF, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VPaged.WF as a Cake Addin
#addin nuget:?package=VPaged.WF&version=1.0.4
// Install VPaged.WF as a Cake Tool
#tool nuget:?package=VPaged.WF&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
VPaged.WF Pagination component for winform base
This library will help you to paginate with winform easily. Source : https://github.com/tranthanhvan/VPaged.WF
How to use
Simple example : Initialize a VPag with the current Form ,set method you use to get data in SelectDataMaster and run:
public partial class Form1 : Form
{
private VPagination<Form1> _pag;
public Form1()
{
InitializeComponent();
_pag = new VPagination<Form1>(this, pageSize: 5, startWhenIntialize: true);
_pag.GetPaginationUI(this.ContainerPager); //Get display pager. in this example 'this.ContainerPager' is a GroupBox
_pag.SelectDataMaster = () => this.SelectData(); // Function select data eg below:
}
public async Task SelectData()
{
//handler data
var result = employees.Skip((_pag.PageIndex - 1) * _pag.PageSize).Take(_pag.PageSize).ToList();
int count = employees.Count();
//paging
_pag.Pagination(result, (long)count, ref GridMaster); // GridMaster is DataGridView.
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- System.Windows.Forms (>= 4.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Pagination for winform