📄 qdatagridview.cs
字号:
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace Qeb.Control
{
public partial class QDataGridView : System.Windows.Forms.DataGridView
{
public QDataGridView()
{
InitializeComponent();
Init();
}
public QDataGridView(IContainer container)
{
container.Add(this);
InitializeComponent();
Init();
}
private void Init()
{
this.BackgroundColor = Color.White;
this.BorderStyle = BorderStyle.None;
this.ColumnHeadersHeight = 22;
this.RowTemplate.Height = 22;
this.DefaultCellStyle.BackColor = Color.White;
this.AlternatingRowsDefaultCellStyle.BackColor = Color.Silver;
}
//[Category("外观"), Description("控件样式"), DefaultValue("Color.White")]
//public new System.Drawing.Color BackgroundColor
//{
// get
// {
// return base.BackgroundColor;
// }
// set
// {
// base.BackgroundColor = value;
// }
//}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -