Simple Question

  • Thread starter Thread starter Gacu
  • Start date Start date
G

Gacu

Hi,

Sorry for a lame question, but i'm a newbie :(

I'm connecting to Firebird database using .net data provider. What's the
fastest and simplest way of puting rows from sql query into DataGrid on the
form ?

Thanx.

Gacu
 
Hi Gacu,

I'd recommend using the DataAdapter. Please refer to the following MSDN
topic for details:

"Populating a DataSet from a DataAdapter"

When the DataSet is populated, you should bind the data grid to that
DataSet.
With the WinForms datagrid, use the SetDataBinding method to do that.
 
I agree by using the DataAdapter, plus I believe a DataReader (fast) is used
behind the scenes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top