Last post Feb 10, 2011 06:02 PM by sjnaughton
Feb 07, 2011 10:28 AM|tawright915|LINK
Is it possible to not show the table page and go straight to the data for a dynamic data app that only has one table?
Feb 07, 2011 09:42 PM|Decker Dong - MSFT|LINK
Not understand what you mean：Would you mind clearifying your question?
I guess you want to use FormView or DetailsView directly instead of a GridView's showing?
Feb 08, 2011 11:29 AM|tawright915|LINK
Sorry for being confusing. When I run this app the first page that comes up is the page where you have to choose the table you are wanting to see. If I have only one table and I only want to go straight to the data, how would I bypass the first page.
Is there a way to create a page from SQL that only shows the data with out having to create all the fields?
Feb 09, 2011 12:53 AM|Decker Dong - MSFT|LINK
According to what you say, I think you should load data into DataSet. This is a memory-based Database storage that holds a collection of DataTa ble. You should dynamically Add DataTable full of data into the DataSet first. Then use this:
//List a list of names of Tables by using DataSet1.Tables[i].TableName; In order to get the TableName successfully, you should use adapter.Fill(datatable,"Your Table Name");
//this is only my sample, you should set the Table bound to a data presentation control...
GridView1.DataSource = DataSet1.Tables;
Feb 10, 2011 06:02 PM|sjnaughton|LINK
Yes this is possible all you need to do is set the Default.aspx to redirect you to the appropriate page
Hope that helps [:)]
Dynami Data 4