• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 905
  • Last Modified:

Datatable - adapter

In AppCode I call a Sql Database. I return DataAdapter - see attached file.
But how can I add a new column to the Adapter? Its value should be 2.
Thanks
public SqlDataAdapter GetTest()
    {
        SqlDataAdapter adapter = new SqlDataAdapter("TestSelect", connection);
        adapter.SelectCommand.CommandType = CommandType.StoredProcedure;
        return adapter;
    }

Open in new window

0
johnkainn
Asked:
johnkainn
1 Solution
 
Melih SARICACommented:
add column to datatable not to adapter
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now