I know there are a lot of threads on how to get sticky headers with variable width tables.
My current solution is based on the accepted answer in this thead: