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)
 
Back
Top