Investors & landlords

I understand that I am only reporting the net gain/loss for tax purposes, but I have received a 1099-B along with my 1099-DIV, so wouldn't I report it under 1099-B's filing section?