The code creates an OleDbCommand to select all data from a table, assigns the command to an OleDbDataAdapter, sets the command's connection to an open connection, uses the adapter to fill a dataset with the table data, gets the filled table from the dataset, and sets a datagrid's datasource to the table to display the data.
The code creates an OleDbCommand to select all data from a table, assigns the command to an OleDbDataAdapter, sets the command's connection to an open connection, uses the adapter to fill a dataset with the table data, gets the filled table from the dataset, and sets a datagrid's datasource to the table to display the data.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd
The code creates an OleDbCommand to select all data from a table, assigns the command to an OleDbDataAdapter, sets the command's connection to an open connection, uses the adapter to fill a dataset with the table data, gets the filled table from the dataset, and sets a datagrid's datasource to the table to display the data.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online from Scribd