DataGrid???

  • Thread starter Thread starter Francis Bisson
  • Start date Start date
F

Francis Bisson

I trie to set the datasource of a datagrid with a recordset.

On VB6 I can make that with : SET DATAGRID.DATASOURCE = RECORDSET

This is possible to make the same on VB.NET???

Thank You!


Frank
 
There is no recordset in ADO.NET but you can set it to a DataSet, a
DataTable, A dataview An Array or antying that support IList. If you are in
ASP.NET (won't work in Winforms) you can even set the Datasource =
SomeCommand.ExecuteReader which is the closest thing to a recordset ADO.NET
has.

Seriuosly though, if you aren't familiar with the differences in ADO.NET
(the only thing it has in common with ADO is the letters ADO a Connection
Object and a CommandObject) That's it. To use it correctly, one really
needs to shift their entire thinking about data access.

If you have any specific questions though, please let me know. Btw, ADO.NET
Core Reference by David Sceppa or Bill Vauhgn's Ado & ADO.NET best practices
are Superb books that will really help you if you are planning on doing much
ADO>NET

HTH,

Bill

www.devbuzz.com
www.knowdotnet.com
 
Back
Top