How display Result from sqlCommand select in the Datagridview

  • Thread starter Thread starter Manfred
  • Start date Start date
M

Manfred

Hi all

How can I display the result of a sqlcommand select in a datagridview.

I guess need a dataset as result to connet it as datasource to the
datagrid?


Thanks in advance

Manfred
 
Manfred,

Yes, in fact the most simple a datatable.

Use a sqldataadapter to fill that dataset

Cor
 
How can I get the data from the datareader object into the datatable? As
I assume the only way to retrieve the data from the command object is
the datareader Object, is this right? I'm new to vb.net.



regards

Manfred
 
Back
Top