none
donot able to update sqldtatabase RRS feed

  • Question

  •  

    hii

    i am using dataset name TestDataSet to interact with Sqldatabse

    i created a dataTable and add a query to insert data  and used a datagrid to display the data.

    when i insert the data it get displayed into the datagrid but the data is not inserted into database ....

    can any one help me out..

     

     

    dim dtAdapter  as TestDataSet.emptableAdapter = new TestDataSet.emptableAdapter

    dim dtTablele as TestDataSet.empdataTable = new TestDataSet.empdataTable

    dtTable.Insert(....)

    dtTable.fill(dtAdapter)

    dtAdapter.AcceptChanges()

    DataGridView1.Visible=true

    DataGridView.dataSource=dtTable

     

     

    Tuesday, August 7, 2007 7:31 AM