提交当前本机整理版本
This commit is contained in:
@@ -964,4 +964,36 @@ namespace Lskj.Control.MultiGridLookUp
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
|
||||
private void OnFrmLookUp_Disposed(object sender, EventArgs e)
|
||||
{
|
||||
if (this.DataSource != null)
|
||||
{
|
||||
this.DataSource = null;
|
||||
}
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 每次弹出时查询设置搜索值
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void FrmLookUp_Shown(object sender, EventArgs e)
|
||||
{
|
||||
string MainText = this.gcMain.FindFilterText;
|
||||
string DatailText = this.gcDetail.FindFilterText;
|
||||
if (!string.IsNullOrWhiteSpace(MainText))
|
||||
{
|
||||
this.gcMain.FindFilterText = "";
|
||||
this.gcMain.FindFilterText = MainText;
|
||||
}
|
||||
if (!string.IsNullOrWhiteSpace(DatailText))
|
||||
{
|
||||
this.gcDetail.FindFilterText = "";
|
||||
this.gcDetail.FindFilterText = DatailText;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user