Extensions.Winforms 0.1.0

There is a newer version of this package available.
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                
#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                

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)
参考资料来源
  1. How to: Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance

    https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/customize-cells-and-columns-in-the-datagrid-by-extending-behavior?view=netframeworkdesktop-4.8

  2. Reza Aghaei

    https://www.reza-aghaei.com/

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 320 1/10/2023
0.1.0 299 1/7/2023