private void FillUpdateGrid() { var srcgrid = new GridTable(m_srcInfo.GetTableStructure(SynQueryType.SelectAll), ""); var dstgrid = new GridTable(m_dstInfo.GetTableStructure(SynQueryType.SelectAll), ""); try { m_gridSourceConn.Connection.Invoke(() => { FillGridTable(m_updates, srcgrid, m_gridSourceConn, m_srcSada, m_srcInfo); }); m_gridTargetConn.Connection.Invoke(() => { FillGridTable(m_updates, dstgrid, m_gridTargetConn, m_dstSada, m_dstInfo); }); var upgrid = m_gridFills[(int)SynTableData.Modified]; upgrid.Fill(EnumUpgradeGridRows(srcgrid, dstgrid, upgrid.GetStructure(null))); } finally { srcgrid.CloseView(); dstgrid.CloseView(); } }