SVN r408
SVN-Revision: r408
This commit is contained in:
@@ -335,6 +335,8 @@ namespace Lskj.Control.MultiGridLookUp
|
|||||||
}
|
}
|
||||||
SetCustomColumns();
|
SetCustomColumns();
|
||||||
this.gcDetail.GridControl.DataSource = this.gridControl1.DataSourceTable().Clone();
|
this.gcDetail.GridControl.DataSource = this.gridControl1.DataSourceTable().Clone();
|
||||||
|
this.gcMain.BestFitColumns();
|
||||||
|
this.gcDetail.BestFitColumns();
|
||||||
//this.gcDetail.SelectAll();
|
//this.gcDetail.SelectAll();
|
||||||
//this.gcDetail.DeleteSelectedRows();
|
//this.gcDetail.DeleteSelectedRows();
|
||||||
}
|
}
|
||||||
@@ -909,36 +911,4 @@ namespace Lskj.Control.MultiGridLookUp
|
|||||||
/// <para>修改日期:</para>
|
/// <para>修改日期:</para>
|
||||||
/// <para>修改备注:</para>
|
/// <para>修改备注:</para>
|
||||||
/// <para>版本:1.0</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