Commit 8bd69721 HZH

当数据源为空时表格的bug

1 个父辈 87a8903e
......@@ -428,6 +428,8 @@ namespace HZH_Controls.Controls
if (this.Height <= 0)
return;
ShowCount = this.panRow.Height / (m_rowHeight);
if (ShowCount == 0)
return;
int intCha = this.panRow.Height % (m_rowHeight);
m_rowHeight += intCha / ShowCount;
}
......@@ -443,8 +445,6 @@ namespace HZH_Controls.Controls
{ return; }
try
{
ControlHelper.FreezeControl(this.panRow, true);
this.panRow.Controls.Clear();
Rows = new List<IDataGridViewRow>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!