How to buy mutual fund in demat account

Can mutual funds be purchased directly through a Demat account?,

To buy mutual funds in a demat account, log in to your trading platform, select the mutual fund, and place a purchase order.