Datagrid question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have made a temp dataset and binded it to my datagrid, now I want to grab the
edited information and save it to another dataset. How would I approach this, or
to I retieve the information from my datagrid?

tia,
adam
 
You can filter the DefaultDataView to have the desidered rows.

myTable.DefaultView.RowStateFilter=DataViewRowState....

Than you can take the rows from the DefaultView!
 
Or you can take advantage of the fact that for the Grid bound to a Dataset
the DataSource property can be cast back to DataView
 
Please provide example code of your statement in vb if possible

"Or you can take advantage of the fact that for the Grid bound to a Datase
the DataSource property can be cast back to DataView"
 
myDataGrid.DataSource = MyDataTable
.... later in the code
Dim view as DataView = CType(myDataGrid.DataSource, DataView)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top