how to construct a DataView programatically ?

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

in my DB program I use DataView intensively.
there is a screen where the user could pick a record and do some more work
on it on another screen.

due to some data consistency between the multiple screen, I cannot pass a
DataRecord to this second screen but I need to pass it a DataView.

How could I build a DataView containning a given DataRecord ?
(this data record might have nothing particular and might even be equal to
an other record, field by field)
How do I do that ?
 
Hi Lloyd,

If the row isn't unique, I doubt that there is a way to construct DataView
just with that record.
Why don't you add a primary key?
You can even add a column to your datatable and populate it with Rownumber
or some other unique value.
 
Back
Top