public void FillGrid() { if (m_BrDoc.LineCount < 1) { return; } int cnt = 0; //StatusText = "正在準備顯示資料..."; //StatusProgress = 0; brGrid.SuspendLayout(); CursorHelper.ShowWaitCursor(); try { int row = FixedRows; foreach (BrailleLine brLine in m_BrDoc.Lines) { FillRow(brLine, row, false); // 填一列,先不要調整列高。 row += 3; cnt++; //StatusProgress = cnt * 100 / brDoc.Lines.Count; } } finally { //StatusText = "重新調整儲存格大小..."; ResizeCells(); brGrid.ResumeLayout(); //StatusProgress = 0; CursorHelper.RestoreCursor(); } }