locked
WHAT IS DATASOURCE AND WHAT IS ITS USE IN GRIDVIEW ??? RRS feed

  • Question

  • I want to know why datasource is used in gridview.
    • Moved by Kristin Xie Wednesday, March 11, 2015 2:42 AM
    Monday, March 9, 2015 3:01 PM

Answers

  • datasource are used to bind the records from datatabase to the gridview .datasource may be dataset,datatable,SqlDataSource,SQLDataReader,Arraylist ,Array etc . according source data you can select datasource
    • Proposed as answer by Arm.tech Wednesday, March 18, 2015 6:36 PM
    • Marked as answer by Just Karl Tuesday, March 31, 2015 7:57 PM
    Monday, March 9, 2015 3:04 PM
  • Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).
    • Proposed as answer by Cor Ligthert Monday, March 9, 2015 5:28 PM
    • Marked as answer by Just Karl Tuesday, March 31, 2015 7:57 PM
    Monday, March 9, 2015 3:58 PM

All replies

  • Um...because it provides the source of data.

    See the example here

    Monday, March 9, 2015 3:03 PM
  • datasource are used to bind the records from datatabase to the gridview .datasource may be dataset,datatable,SqlDataSource,SQLDataReader,Arraylist ,Array etc . according source data you can select datasource
    • Proposed as answer by Arm.tech Wednesday, March 18, 2015 6:36 PM
    • Marked as answer by Just Karl Tuesday, March 31, 2015 7:57 PM
    Monday, March 9, 2015 3:04 PM
  • Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).
    • Proposed as answer by Cor Ligthert Monday, March 9, 2015 5:28 PM
    • Marked as answer by Just Karl Tuesday, March 31, 2015 7:57 PM
    Monday, March 9, 2015 3:58 PM
  • thank you coolDadTx for the suggestion, I have just posted the question on the link provided by you.
    Monday, March 9, 2015 4:18 PM