Creating a DataTable object with dummy data
问题 I am trying to databind a DataTable to an accordion and I have found that If I retrieve the DataTable from a database using a table adapter it binds to the accordion perfectly however what I want to do is create a dummy table (for testing purposes if I don't have access to my database) the code to create the dummy table is below: DataTable table2 = new DataTable("articletable"); table2.Columns.Add("articleID"); table2.Columns.Add("title"); table2.Columns.Add("content"); DataRow row = table2