Commit db2b4e71 HZH

处理DGV数据源为空时的问题

1 个父辈 bdfee2a5
...@@ -648,6 +648,13 @@ namespace HZH_Controls.Controls ...@@ -648,6 +648,13 @@ namespace HZH_Controls.Controls
lastItem.Height = this.panRow.Height - (m_showCount - 1) * m_rowHeight; lastItem.Height = this.panRow.Height - (m_showCount - 1) * m_rowHeight;
} }
} }
else
{
foreach (Control item in this.panRow.Controls)
{
item.Visible = false;
}
}
} }
finally finally
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!