Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 69bf112a
由
HZH
编写于
2019-08-31 15:27:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
dgv获取选择bug
1 个父辈
658e5a64
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
1 行删除
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.cs
HZH_Controls/Test/FrmTemp1Test.Designer.cs
HZH_Controls/Test/FrmTemp1Test.cs
HZH_Controls/HZH_Controls/Controls/DataGridView/UCDataGridView.cs
查看文件 @
69bf112
...
@@ -252,7 +252,7 @@ namespace HZH_Controls.Controls
...
@@ -252,7 +252,7 @@ namespace HZH_Controls.Controls
return
item
as
UCDataGridView
;
return
item
as
UCDataGridView
;
else
if
(
item
.
Controls
.
Count
>
0
)
else
if
(
item
.
Controls
.
Count
>
0
)
{
{
var
grid
=
FindChildGrid
(
c
);
var
grid
=
FindChildGrid
(
item
);
if
(
grid
!=
null
)
if
(
grid
!=
null
)
return
grid
;
return
grid
;
}
}
...
...
HZH_Controls/Test/FrmTemp1Test.Designer.cs
查看文件 @
69bf112
...
@@ -34,11 +34,14 @@
...
@@ -34,11 +34,14 @@
// ucDataGridView1
// ucDataGridView1
//
//
this
.
ucDataGridView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDataGridView1
.
BackColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucDataGridView1
.
Columns
=
null
;
this
.
ucDataGridView1
.
DataSource
=
null
;
this
.
ucDataGridView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucDataGridView1
.
Dock
=
System
.
Windows
.
Forms
.
DockStyle
.
Fill
;
this
.
ucDataGridView1
.
HeadFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucDataGridView1
.
HeadFont
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
12F
);
this
.
ucDataGridView1
.
HeadHeight
=
40
;
this
.
ucDataGridView1
.
HeadHeight
=
40
;
this
.
ucDataGridView1
.
HeadPadingLeft
=
24
;
this
.
ucDataGridView1
.
HeadPadingLeft
=
24
;
this
.
ucDataGridView1
.
HeadTextColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucDataGridView1
.
HeadTextColor
=
System
.
Drawing
.
Color
.
Black
;
this
.
ucDataGridView1
.
IsAutoHeight
=
false
;
this
.
ucDataGridView1
.
IsShowCheckBox
=
false
;
this
.
ucDataGridView1
.
IsShowCheckBox
=
false
;
this
.
ucDataGridView1
.
IsShowHead
=
true
;
this
.
ucDataGridView1
.
IsShowHead
=
true
;
this
.
ucDataGridView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
61
);
this
.
ucDataGridView1
.
Location
=
new
System
.
Drawing
.
Point
(
0
,
61
);
...
@@ -59,6 +62,7 @@
...
@@ -59,6 +62,7 @@
this
.
IsFullSize
=
false
;
this
.
IsFullSize
=
false
;
this
.
Name
=
"FrmTemp1Test"
;
this
.
Name
=
"FrmTemp1Test"
;
this
.
Text
=
"FrmTemp1Test"
;
this
.
Text
=
"FrmTemp1Test"
;
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmTemp1Test_FormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmTemp1Test_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmTemp1Test_Load
);
this
.
Controls
.
SetChildIndex
(
this
.
ucDataGridView1
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
ucDataGridView1
,
0
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
...
...
HZH_Controls/Test/FrmTemp1Test.cs
查看文件 @
69bf112
...
@@ -72,6 +72,11 @@ namespace Test
...
@@ -72,6 +72,11 @@ namespace Test
AddChilds
(
model
,
intCount
-
1
);
AddChilds
(
model
,
intCount
-
1
);
}
}
}
}
private
void
FrmTemp1Test_FormClosing
(
object
sender
,
FormClosingEventArgs
e
)
{
var
v
=
this
.
ucDataGridView1
.
SelectRows
;
}
}
}
public
class
TestModel
public
class
TestModel
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论