Form 1099-DIV reports dividends income received during the year not a sale of an asset requiring a cost basis.
Form 1099-B, on the other hand is the sale of an asset that generally asks for the cost basis of an asset sold and what the gross proceeds from the sale might be in order to generate a gain or loss from the sale.
For additional information on reporting Form 1099-DIV income in your return please refer to the following link:
How do I report 1099-DIV income