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.
Loading...
Related Quiz
- How can you implement custom data binding in an ADO.NET application?
- When working with LINQ to Entities, the "Include" method is used to specify ___________ properties to be eagerly loaded.
- In LINQ to DataSet, what is the primary purpose of the from clause?
- What are some common list controls used in ADO.NET for data binding purposes?
- The "Connection Reset" attribute in the connection string is used to ___________ the connection pool.