Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6b547591
由
kwwwvagaa
编写于
2020-04-22 20:01:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
表格标题位置优化
1 个父辈
f30bda0f
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
8 行增加
和
29 行删除
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.Designer.cs
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.cs
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.resx
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.Designer.cs
查看文件 @
6b54759
...
@@ -48,13 +48,11 @@ namespace HZH_Controls.Controls
...
@@ -48,13 +48,11 @@ namespace HZH_Controls.Controls
/// </summary>
/// </summary>
private
void
InitializeComponent
()
private
void
InitializeComponent
()
{
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
panHead
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panHead
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panColumns
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
panColumns
=
new
System
.
Windows
.
Forms
.
TableLayoutPanel
();
this
.
panHeadLeft
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panHeadLeft
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panRow
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
timer1
=
new
System
.
Windows
.
Forms
.
Timer
(
this
.
components
);
this
.
ucSplitLine_H1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_H
();
this
.
ucSplitLine_H1
=
new
HZH_Controls
.
Controls
.
UCSplitLine_H
();
this
.
panRow
=
new
System
.
Windows
.
Forms
.
Panel
();
this
.
panHead
.
SuspendLayout
();
this
.
panHead
.
SuspendLayout
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
...
@@ -89,18 +87,6 @@ namespace HZH_Controls.Controls
...
@@ -89,18 +87,6 @@ namespace HZH_Controls.Controls
this
.
panHeadLeft
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
39
);
this
.
panHeadLeft
.
Size
=
new
System
.
Drawing
.
Size
(
0
,
39
);
this
.
panHeadLeft
.
TabIndex
=
2
;
this
.
panHeadLeft
.
TabIndex
=
2
;
//
//
// panRow
//
this
.
panRow
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
40
);
this
.
panRow
.
Name
=
"panRow"
;
this
.
panRow
.
Size
=
new
System
.
Drawing
.
Size
(
1061
,
525
);
this
.
panRow
.
TabIndex
=
1
;
//
// timer1
//
this
.
timer1
.
Interval
=
1
;
this
.
timer1
.
Tick
+=
new
System
.
EventHandler
(
this
.
timer1_Tick
);
//
// ucSplitLine_H1
// ucSplitLine_H1
//
//
this
.
ucSplitLine_H1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
this
.
ucSplitLine_H1
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))),
((
int
)(((
byte
)(
232
)))));
...
@@ -111,6 +97,13 @@ namespace HZH_Controls.Controls
...
@@ -111,6 +97,13 @@ namespace HZH_Controls.Controls
this
.
ucSplitLine_H1
.
TabIndex
=
0
;
this
.
ucSplitLine_H1
.
TabIndex
=
0
;
this
.
ucSplitLine_H1
.
TabStop
=
false
;
this
.
ucSplitLine_H1
.
TabStop
=
false
;
//
//
// panRow
//
this
.
panRow
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
40
);
this
.
panRow
.
Name
=
"panRow"
;
this
.
panRow
.
Size
=
new
System
.
Drawing
.
Size
(
1061
,
525
);
this
.
panRow
.
TabIndex
=
1
;
//
// UCDataGridView
// UCDataGridView
//
//
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
None
;
...
@@ -149,7 +142,6 @@ namespace HZH_Controls.Controls
...
@@ -149,7 +142,6 @@ namespace HZH_Controls.Controls
/// The pan head left
/// The pan head left
/// </summary>
/// </summary>
private
System
.
Windows
.
Forms
.
Panel
panHeadLeft
;
private
System
.
Windows
.
Forms
.
Panel
panHeadLeft
;
private
System
.
Windows
.
Forms
.
Timer
timer1
;
}
}
}
}
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.cs
查看文件 @
6b54759
...
@@ -773,8 +773,6 @@ namespace HZH_Controls.Controls
...
@@ -773,8 +773,6 @@ namespace HZH_Controls.Controls
if
(
e
.
ScrollOrientation
==
ScrollOrientation
.
VerticalScroll
)
if
(
e
.
ScrollOrientation
==
ScrollOrientation
.
VerticalScroll
)
{
{
panHead
.
Location
=
new
Point
(
0
,
this
.
VerticalScroll
.
Value
+
this
.
panRow
.
Location
.
Y
-
panHead
.
Height
-
2
);
panHead
.
Location
=
new
Point
(
0
,
this
.
VerticalScroll
.
Value
+
this
.
panRow
.
Location
.
Y
-
panHead
.
Height
-
2
);
timer1
.
Enabled
=
true
;
scrollIndex
=
0
;
}
}
}
}
...
@@ -782,14 +780,6 @@ namespace HZH_Controls.Controls
...
@@ -782,14 +780,6 @@ namespace HZH_Controls.Controls
{
{
}
}
int
scrollIndex
=
0
;
private
void
timer1_Tick
(
object
sender
,
EventArgs
e
)
{
if
(
scrollIndex
>
1000
)
timer1
.
Enabled
=
false
;
panHead
.
Location
=
new
Point
(
0
,
this
.
VerticalScroll
.
Value
+
this
.
panRow
.
Location
.
Y
-
panHead
.
Height
-
2
);
scrollIndex
++;
}
}
}
}
}
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.resx
查看文件 @
6b54759
...
@@ -117,7 +117,4 @@
...
@@ -117,7 +117,4 @@
<resheader name="writer">
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</resheader>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
</root>
\ No newline at end of file
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论