Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ProductsTableAdapter productsAdapter = new
                                               ProductsTableAdapter();

        GridView1.DataSource = productsAdapter.GetProducts();
        GridView1.DataBind();
    }