Insert from datagrid

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

    #1

    Insert from datagrid

    on previous version to add data in datagrid as easy, we just input value in
    gird, when we move pointer record automatically save to table

    in vb.net iam fell a stupid man to insert record in datagrid using ado.net,
    is any way to do that, please sample code and thanks any way.


  • AlexB

    #2
    Insert from datagrid

    I haven't used VB.NET very much but ADO.NET
    is "disconnect ed" so updating a database is a two step
    process - update the in memory dataset, then update the
    database using SQL statements (need a dataconnection, data
    adapter, Insert/Update commands and about two dozen lines
    of code). It's actually a bit hairy compared to the
    Recordset based ADO model especially for Windows
    applications where you really want a connected recordset.
    You may want to use ADO, instead of ADO.NET, if it's a
    windows app.

    [color=blue]
    >-----Original Message-----
    >on previous version to add data in datagrid as easy, we[/color]
    just input value in[color=blue]
    >gird, when we move pointer record automatically save to[/color]
    table[color=blue]
    >
    >in vb.net iam fell a stupid man to insert record in[/color]
    datagrid using ado.net,[color=blue]
    >is any way to do that, please sample code and thanks any[/color]
    way.[color=blue]
    >
    >
    >.
    >[/color]

    Comment

    Working...