...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
//Create a data table DataTable states = new DataTable(); dt.Columns.Add("State"); dt.Columns.Add("Population"); dt.Rows.Add(new object[] { "Connecticut", "3.6 million residents" }); dt.Rows.Add(new object[] { "Maine", "1.3 million residents" }); dt.Rows.Add(new object[] { "Massachusetts", "6.6 million residents" }); //Create DataBindingProperties DataBindingProperties dataBindProps = pptt.CreateDataBindingProperties(); //Bind the data pptt.BindData(states, "State Info", dataBindProps); |
Custom objects
...