datagrid to datagridview

  • Thread starter Thread starter cj
  • Start date Start date
C

cj

how do I do this in 2008 using the datagridview? The SetDataBinding part.


mySQLCommand.CommandText = "select * from VH_TBP"
mySQLCommand.Connection = myDbConnection
myDataAdapter.SelectCommand = mySQLCommand

myDataAdapter.Fill(ds, tableName)

DataGrid1.SetDataBinding(ds, tableName)
 
cj,

It is with a datagrid
DataGrid1.DataSource(ds, tableName)
That one you can use with the DataGridView in the same way

Cor
 

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

Similar Threads


Back
Top