Commit 20d14dad HZH

bug

1 个父辈 28d87bb7
......@@ -554,7 +554,7 @@ namespace HZH_Controls.Controls
/// 任务编号:POS
/// </summary>
/// <returns>返回值</returns>
private void ResetShowCount()
public void ResetShowCount()
{
if (DesignMode)
{ return; }
......@@ -665,7 +665,7 @@ namespace HZH_Controls.Controls
}
if (lastItem != null && intSourceCount == m_showCount)
{
lastItem.Height = this.panRow.Height - (m_showCount - 1) * m_rowHeight-2;
lastItem.Height = this.panRow.Height - (m_showCount - 1) * m_rowHeight - 2;
}
}
else
......
......@@ -16,6 +16,17 @@ namespace Test.UC
public UCTestTreeGridTable()
{
InitializeComponent();
ucDataGridView1.SizeChanged += ucDataGridView1_SizeChanged;
}
void ucDataGridView1_SizeChanged(object sender, EventArgs e)
{
if (this.ucDataGridView1.Page != null)
{
this.ucDataGridView1.ResetShowCount();
this.ucDataGridView1.Page.PageSize = this.ucDataGridView1.ShowCount;
this.ucDataGridView1.DataSource = this.ucDataGridView1.Page.GetCurrentSource();
}
}
private void UCTestTreeGridTable_Load(object sender, EventArgs e)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!