When using data binding in ADO.NET, what is the role of the DataSource property?

  • Binds the data to the UI control
  • Executes SQL commands
  • Specifies the connection string to the database
  • Specifies the name of the database table
The DataSource property in ADO.NET is used to bind data from a data source, such as a dataset or data table, to a UI control, such as a DataGridView or ListBox. It establishes the connection between the data source and the control, enabling the display and manipulation of data in the user interface.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *