SVN r258
SVN-Revision: r258
This commit is contained in:
@@ -864,34 +864,4 @@ namespace Lskj.Control.MultiModelLookUp
|
||||
this.gcMain.GridView.SelectionChanged -= OnGridViewSelectionChanged;
|
||||
if (SingleChoiceMode)
|
||||
{
|
||||
//清除所有选择
|
||||
this.gcMain.GridView.ClearSelection();
|
||||
}
|
||||
if (e.Action == CollectionChangeAction.Add)//选中
|
||||
{
|
||||
this.gcMain.GridView.SelectRow(e.ControllerRow);
|
||||
}
|
||||
this.gcMain.GridView.SelectionChanged += OnGridViewSelectionChanged;
|
||||
}
|
||||
#endregion
|
||||
#region 释放时清理数据源
|
||||
/// <summary>
|
||||
/// <para>说明:释放时清理数据源</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-03-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
private void OnFrmModelLookUp_Disposed(object sender, EventArgs e)
|
||||
{
|
||||
if (this.DataSource != null)
|
||||
{
|
||||
this.DataSource = null;
|
||||
}
|
||||
GC.Collect();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
//清除所有选
|
||||
Reference in New Issue
Block a user