Home > Net >  The Gridview how through SQL stored procedures bound data
The Gridview how through SQL stored procedures bound data

Time:10-05

Asp.net the Gridview control, need binding SQL server table data,
Background the zha write code, ask the great spirit to guide a ha
Now try to binding the two data,,

CodePudding user response:

GridView1. The DataSource=ds. Tables [r]. "Customers" DefaultView;//set the gridview control data sources to create data sets ds
GridView1. DataBind ();//bind data in a database table

CodePudding user response:

Complete how to manage, such as where the name of the stored procedure is written, connect those what

CodePudding user response:

reference 1/f, my friend's reply:
GridView1. The DataSource=ds. The Tables (" Customers "). The DefaultView;//set the gridview control data sources to create data sets ds
GridView1. DataBind ();//bind data in a database table

Complete how to manage, such as where the name of the stored procedure is written, connect those what
  • Related