1:
2: private DataTable ProductInfo;
3: private void createDataTable() {
4:
5: ProductInfo = new DataTable();
6:
7: ProductInfo.Clear();
8: ProductInfo.Columns.Add("_Product");
9: ProductInfo.Columns.Add("_WH");
10: ProductInfo.Columns.Add("_Qty");
11:
12: DataRow ProductRow = ProductInfo.NewRow();
13: ProductRow["_Product"] = "AS133";
14: ProductRow["_WH"] = "W101";
15: ProductRow["_Qty"] = "10";
16: ProductInfo.Rows.Add(ProductRow);
17:
18: ProductRow = ProductInfo.NewRow();
19: ProductRow["_Product"] = "AS133";
20: ProductRow["_WH"] = "W102";
21: ProductRow["_Qty"] = "7";
22: ProductInfo.Rows.Add(ProductRow);
23:
24: ProductRow = ProductInfo.NewRow();
25: ProductRow["_Product"] = "AS133";
26: ProductRow["_WH"] = "W103";
27: ProductRow["_Qty"] = "5";
28: ProductInfo.Rows.Add(ProductRow);
29:
30: ProductRow = ProductInfo.NewRow();
31: ProductRow["_Product"] = "AS156";
32: ProductRow["_WH"] = "W101";
33: ProductRow["_Qty"] = "6";
34: ProductInfo.Rows.Add(ProductRow);
35:
36: ProductRow = ProductInfo.NewRow();
37: ProductRow["_Product"] = "TS156";
38: ProductRow["_WH"] = "W101";
39: ProductRow["_Qty"] = "8";
40: ProductInfo.Rows.Add(ProductRow);
41:
42: ProductRow = ProductInfo.NewRow();
43: ProductRow["_Product"] = "TS156";
44: ProductRow["_WH"] = "W102";
45: ProductRow["_Qty"] = "8";
46: ProductInfo.Rows.Add(ProductRow);
47: }