Borders are missing when using multicolumn [duplicate]

I want to span a cell across two rows using multicolumn. This works but the borders are missing then.

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{c}{Multi-column}\\
X&X\\
\hline
\end{tabular}


Why does multicolumn omit the borders and how do I get the borders?

marked as duplicate by David Carlisle tables StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jan 28 '16 at 16:45

• ...it's because you're overriding the column specification of the main tabular - |c|c| - with that of \multicolumn - c. The latter doesn't have any vertical rules in it. You should try \multicolumn{2}{c|}{..}. – Werner Jan 28 '16 at 15:22