Commit 5683e6d8 authored by tr's avatar tr

1、清空表:每次查询清空视图

parent 0df886b7
......@@ -57,8 +57,10 @@ namespace Tools.UI
}
//界面只读
this.SetEnabled(false);
this.SetEnabled(false);
//视图初始化
this.View.Controls.Clear();
this.View.Height = 20;
//初始化数据集
this._ds = new DataSet();
//初始化相似表
......@@ -190,7 +192,7 @@ namespace Tools.UI
ReadOnly = true,
BackgroundColor = Color.White,
Margin = new Padding(5),
Height = (dt.DefaultView.Count + 1) * 27,
Height = (dt.DefaultView.Count + 1) * 25 + 10,
DataSource = dt.DefaultView,
Dock = DockStyle.Top,
Parent = this.View,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment