You're likely thinking of the 1957 film "The Three Musketeers" starring Gene Kelly as the jousting champion D'Artagnan.
While he wasn't the main character (that was played by Van Heflin), his jousting scene was a highlight of the movie, showcasing Kelly's impressive athleticism and charisma.