K
Keith Rebello
I use VB.Net in VS2005 and rarely use databases.
I have a database to which I open a connection in my application (using
ADO). Once I have the connection, I loop through each table in the database
using a command string ("Select * from .) and a DataAdapter to populate a
DataSet. I then close the connection.
If I understand this correctly, I now have a copy of the database in memory.
I cannot seem to find a way to query this DataSet to limit the rows and
columns that I want to see in my DataGridView. Using
DataSet.Tables.Select( , ) I can limit the number of rows based on a
criterion, but cannot seem to limit the number of columns.
Am I trying to do something that is not possible? If it is possible, please
offer some suggestions. Or, do I have to re-open the connection and
re-query the original database?
Keith Rebello.
I have a database to which I open a connection in my application (using
ADO). Once I have the connection, I loop through each table in the database
using a command string ("Select * from .) and a DataAdapter to populate a
DataSet. I then close the connection.
If I understand this correctly, I now have a copy of the database in memory.
I cannot seem to find a way to query this DataSet to limit the rows and
columns that I want to see in my DataGridView. Using
DataSet.Tables.Select( , ) I can limit the number of rows based on a
criterion, but cannot seem to limit the number of columns.
Am I trying to do something that is not possible? If it is possible, please
offer some suggestions. Or, do I have to re-open the connection and
re-query the original database?
Keith Rebello.