Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
Ftt_Common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Ftt_Common
Commits
01be57fe
Commit
01be57fe
authored
Aug 11, 2021
by
tr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、表开发工具:增加类型录入自动提示
parent
51d7ec15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
wDBTableDevelopTools.cs
Tools/UI/wDBTableDevelopTools.cs
+24
-1
No files found.
Tools/UI/wDBTableDevelopTools.cs
View file @
01be57fe
...
@@ -124,6 +124,7 @@ namespace Tools.UI
...
@@ -124,6 +124,7 @@ namespace Tools.UI
this
.
dgvData
.
DataSource
=
this
.
_ds
.
Tables
[
infoTable
];
this
.
dgvData
.
DataSource
=
this
.
_ds
.
Tables
[
infoTable
];
this
.
dgvData
.
KeyUp
+=
DgvData_KeyUp
;
this
.
dgvData
.
KeyUp
+=
DgvData_KeyUp
;
this
.
dgvData
.
CellValueChanged
+=
DgvData_CellValueChanged
;
this
.
dgvData
.
CellValueChanged
+=
DgvData_CellValueChanged
;
this
.
dgvData
.
EditingControlShowing
+=
DgvData_EditingControlShowing
;
//工具栏-事件
//工具栏-事件
this
.
tsmiExportModel
.
Click
+=
TsmiExportModel_Click
;
this
.
tsmiExportModel
.
Click
+=
TsmiExportModel_Click
;
this
.
tsmiExportSql
.
Click
+=
TsmiExportSql_Click
;
this
.
tsmiExportSql
.
Click
+=
TsmiExportSql_Click
;
...
@@ -175,6 +176,28 @@ namespace Tools.UI
...
@@ -175,6 +176,28 @@ namespace Tools.UI
{
{
}
}
private
void
DgvData_EditingControlShowing
(
object
sender
,
DataGridViewEditingControlShowingEventArgs
e
)
{
var
fieldName
=
this
.
dgvData
.
Columns
[
this
.
dgvData
.
CurrentCell
.
ColumnIndex
].
DataPropertyName
;
if
(
fieldName
.
Equals
(
"ColumnType"
))
{
TextBox
tb
=
e
.
Control
as
TextBox
;
if
(
tb
!=
null
)
{
tb
.
AutoCompleteMode
=
AutoCompleteMode
.
Suggest
;
tb
.
AutoCompleteSource
=
AutoCompleteSource
.
CustomSource
;
var
AutoItems
=
new
AutoCompleteStringCollection
()
{
"INT"
,
"BIT"
,
"IMAGE"
,
"DATETIME"
,
"DECIMAL(18,2)"
,
"VARCHAR(50)"
,
"VARCHAR(MAX)"
,
"NVARCHAR(50)"
,
"NVARCHAR(MAX)"
,
"UNIQUEIDENTIFIER"
};
tb
.
AutoCompleteCustomSource
=
AutoItems
;
}
}
}
#
endregion
#
endregion
#
region
工具栏
-
事件
#
region
工具栏
-
事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment