Whenever I type the .DataSource
it keeps having red on the bottom or having an error:
'ListView' does not contain a defenition for 'DataSource' and no extension method 'DataSource' accepting a first argument of type 'ListView' could be found (are you missing a using directive or an assembly reference?)
public Form4()
{
InitializeComponent();
lstProductsChosen.DataSource = products;
}
What should I do? Do I need to add reference?