\documentclass{article}
\usepackage[utf8]{inputenc} % 'cp1252'-Western, 'cp1251'-Cyrillic, etc.
\usepackage[a4paper, left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage[english]{babel} % 'french', 'german', 'spanish', 'danish', etc.
\usepackage{txfonts}
\usepackage[classicReIm]{kpfonts}
\usepackage{array, tabularx, blindtext}
\usepackage[table]{xcolor}
\begin{document}
\blindtext[3]
\begin{center}
\begin{table}[h]
\centering
\caption{Caption}
\rowcolors{2}{lightgray!30}{}
\begin{tabularx}{0.5\textwidth}{>{\centering \columncolor{lightgray}}m{2.4cm}|>{\centering}X|>{\centering}X|>{\centering\arraybackslash}X} \hline
\rowcolor{lightgray}
\textbf{Unit Power (MW)} & \textbf{PSO} & \textbf{MFO} & \textbf{GA} \\ \hline\hline
\textbf{P1} & 445.89 & 426.09 & 474.81 \\ \hline
\textbf{P2} & 175.88 & 199.8 & 178.64 \\ \hline
\textbf{P3} & 258.63 & 247.5 & 262.21 \\ \hline
\textbf{P4} & 139.67 & 136.95 & 134.28 \\ \hline
\textbf{P5} & 165.61 & 166.24 & 151.9 \\ \hline
\textbf{P6} & 89.71 & 98.93 & 74.18 \\ \hline
\textbf{Total Power Generation (MW)} & 1275.39 & 1275.51 & 1276.02 \\ \hline
\textbf {Total Demand (MW)} & 1263 & 1263 & 1263 \\ \hline
\textbf {Power Loss (MW)} & 12.39 & 12.51 & 13.02 \\ \hline
\textbf {Total Generation Cost} & 15443 & 15448.72 & 15459 \\ \hline
\end{tabularx}
\end{table}
\end{center}
\end{document}
Here tried to give a different color in the first column by >{\columncolor{}} but the rowcolors{}{}{} always dominates the columncolor. Is there a way to replicate this MS Word table style?



