- Joined
- Jun 27, 2006
- Messages
- 1
- Reaction score
- 0
I have a DataTable that has 12 columns (or fields) in the select statement. One of the adapters has a method where the SQL only returns 2 columns rather than the 12 selected in the DataTable.
However, when I bind to the Gridview, I see all the column headers rather than the 2 the method is supposed to return.
Sort of puzzled here...
However, when I bind to the Gridview, I see all the column headers rather than the 2 the method is supposed to return.
Code:
TVG_NewsTableAdapter newsAdapter = new TVG_NewsTableAdapter();
NewsList.DataSource = newsAdapter.GetAdminNewsList();
NewsList.DataBind();
Sort of puzzled here...