A Maldives court on Monday refused bail to former president and opposition leader Mohamed Nasheed and ordered that he remain in custody until the end of his trial on terrorism charges, his party said.