Extensions.Winforms
0.1.0
.NET 7.0
This package targets .NET 7.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
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 Extensions.Winforms --version 0.1.0
NuGet\Install-Package Extensions.Winforms -Version 0.1.0
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="Extensions.Winforms" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Extensions.Winforms --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Extensions.Winforms, 0.1.0"
#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 Extensions.Winforms as a Cake Addin #addin nuget:?package=Extensions.Winforms&version=0.1.0 // Install Extensions.Winforms as a Cake Tool #tool nuget:?package=Extensions.Winforms&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Densen 的 Winforms 常用扩展库
DataGridView
列控件 | 说明 | 参数 |
---|---|---|
DataGridViewCalendarColumn | 日期编辑列 | |
DataGridViewIntegerColumn | 整数编辑列 | |
DataGridViewNumericColumn | 数字编辑列,默认两位小数 | ThousandsSeparator,DecimalPlaces,Minimum,Maximum |
DataGridViewPasswordColumn | 密码编辑列 | UsePasswordCharWhenEditing |
DataGridViewRolloverCellColumn | 鼠标焦点变色列 |
示例:
https://github.com/densen2014/RookieProject/tree/master/DgvValidatingData
扩展 | 说明 | 参数 | 示例 |
---|---|---|---|
Bind<T>(this DataGridView grid, IList<T> data, bool autoGenerateColumns = true) | 渲染生成列 | 示例:dataGridView1.Bind(list) |
参考资料来源
How to: Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance
Reza Aghaei
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0-windows7.0 is compatible. net8.0-windows was computed. |
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- System.ComponentModel.Annotations (>= 5.0.0)
-
net7.0-windows7.0
- System.ComponentModel.Annotations (>= 5.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.