Tech Off Post

Single Post Permalink

View Thread: DataView Object
  • User profile image

    r_taduri wrote:

      I need to retrieve those filtered rows from a dataview object into a datatable objects.

    OK, might I ask why? You can certainly databind against a view.

    If you feel you must you could clone the internal datatable to get the schema;

    DataTable newDt = dataViewObject.Table.Clone();

    then enumerate over the rows in the view appending them to the new data table.