datagrid to datagridview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cj

    datagrid to datagridview

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


    mySQLCommand.Co mmandText = "select * from VH_TBP"
    mySQLCommand.Co nnection = myDbConnection
    myDataAdapter.S electCommand = mySQLCommand

    myDataAdapter.F ill(ds, tableName)

    DataGrid1.SetDa taBinding(ds, tableName)

  • Cor Ligthert[MVP]

    #2
    Re: datagrid to datagridview

    cj,

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

    Cor

    "cj" <cj@nospam.nosp amschreef in bericht
    news:%23iaz3hPv IHA.1328@TK2MSF TNGP03.phx.gbl. ..
    how do I do this in 2008 using the datagridview? The SetDataBinding part.
    >
    >
    mySQLCommand.Co mmandText = "select * from VH_TBP"
    mySQLCommand.Co nnection = myDbConnection
    myDataAdapter.S electCommand = mySQLCommand
    >
    myDataAdapter.F ill(ds, tableName)
    >
    DataGrid1.SetDa taBinding(ds, tableName)
    >

    Comment

    Working...