Requery a recordset in ADO.NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thanh-Nhan Le

    Requery a recordset in ADO.NET

    Hi,

    I am using Dataset and Datatable object to show data on a form (unbound).
    How can I refresh data in the datatable object (or whole Dataset)? (as
    requery method in old ADO)

    I am using VS 2008 prof. Which best method may I use for bounding data to a
    form?

    Is there any enterprise version für VS 2008?

    Thanks
    Nhan


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Requery a recordset in ADO.NET

    Nhan,

    You can't. You have to have the data adapter which was used to fill the
    DataSet. The DataSet is truly disconnected, it has no knowledge of where
    the data came from, or the commands used to populate it.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "Thanh-Nhan Le" <tnle_2003@yaho o.dewrote in message
    news:OZRJGfV8IH A.1200@TK2MSFTN GP04.phx.gbl...
    Hi,
    >
    I am using Dataset and Datatable object to show data on a form (unbound).
    How can I refresh data in the datatable object (or whole Dataset)? (as
    requery method in old ADO)
    >
    I am using VS 2008 prof. Which best method may I use for bounding data to
    a form?
    >
    Is there any enterprise version für VS 2008?
    >
    Thanks
    Nhan
    >

    Comment

    Working...