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
 
Back
Top