The family of the late Pat Gregory completed purchase of the building at 4 State Road in Vineyard Haven, location of Edu Comp, in a $1.4 million transaction late last month.

The May 26 sale insures that the office supply and computer store founded by Mr. Gregory will remain in business at the location in the brick building at the head of Main street, according to Dan Carbon, the store manager, and son in law of Mr. Gregory.

“It’s a great thing for Edu Comp,” Mr. Carbon. “It secures the future.”

While Mr. Gregory and his family have always owned the business, the premises was owned by a partnership of four couples, including Mr. Gregory and his wife Dorothy.

“The building went on the market three years ago,” Mr. Carbon said. “Before Pat’s death, he and I had been trying to find a way to buy the building so we wouldn’t have to move Edu Comp. The last six months, all the pieces fell into place. I think everyone just wanted it to work.”

A corporation controlled by Mr. Carbon, Mr. Gregory’s daughter Shannon, and his widow Dorothy financed the sale of the building through the Martha’s Vineyard Savings Bank.

Mr. Carbon said speculative investors were interested in the building for a possible restaurant, or housing.

“I’m really proud of how we did it,” Mr. Carbon said. “The owners and the bank and the real estate people pulled hard for us. It was very bittersweet to be [at the closing] without Pat. It was his enthusiasm and encouragement that pushed us forward.”

Mr. Gregory, a widely admired businessman and longtime town moderator in West Tisbury, was the victim of a homicide during a California hiking vacation in May of last year. The crime remains unsolved.