Ref. No. 1078/41-267
In the name of Allah the most Gracious the most Merciful
The answer to your question is as follows:
It is permissible to hold shares of the companies that do Halal business. So before investment you have to make inquiries about their products and production methods.
And Allah knows best
Darul Uloom Waqf Deoband