public partial class Products : System.Web.UI.Page
{
public class Products2
{
public string ItemNumber { get; set; }
public string ItemDescription { get; set; }
public string PrePrice { get; set; }
public string Size { get; set; }
}
//....
Then:
List<Products2> list = new List<Products2>();
foreach (DataRow dr in table.Rows)
{
Products2 products = new Products2();
products.ItemNumber = dr["Item #"].ToString();
products.ItemDescription = dr["Item Description"].ToString();
products.PrePrice = dr["Pre Price"].ToString();
products.Size = dr["Size"].ToString();
list.Add(products);
}