That list won't contain data - it just creates a new, empty list.
If you want to add items to it (from some source) then it's very, very easy to use it with a DataGridView:
public class ProdTotalSales
{
public string Text { get; set; }
public int Value { get; set; }
private string Hidden { get; set; }
public ProdTotalSales(string s, string h, int i)
{
Text = s;
Hidden = h;
Value = i;
}
}
ProdTotalSales p1 = new ProdTotalSales("P1", "p1 hidden", 1);
ProdTotalSales p2 = new ProdTotalSales("P2", "p2 hidden", 2);
List<prodtotalsales> list = new List<prodtotalsales>() { p1, p2 };
myDataGridView.DataSource = list;
Will give you a DataGridView with two columns (one for each public property in the class) and two rows (one for each instance of the class in the List).