Databinding from one dataset to multiple forms

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

Guest

I'm building a relatively simple app to edit flat data from a single table.
I need to use multiple windows - Main form has a datagrid...idea is to click
on a row in the data grid to open a "detail" window with data from the row.
Many detail windows can be opened at the same time (for different rows).
Each detail window has controls (e.g. textboxes) for displaying and editing
the data from the row. Two questions - one general and one specific.
Currently the main datagrid passes a reference to a common dataset and info
on the row that was clicked on. I have a currencymanager in the detail
window to bind all of the controls together. Specific question: Is there a
good way to figure out what position to set the currency manager to when
opening a detail screen. Second general question - Is this the best
approach?
 
Bob,

When I understand your message well, than I get the idea that for every
"detail" windows used in this approach a seperate dataview can be very
effective. (Setting the dataview rowfilter belonging to that "detail" window
to the primary key that you did select for that "detail" window). And don't
forget than to do the endcurrentedit everytime you change a "detail" window
for that dataview.

I would keep the currencymanager in this case binded to my datagrid. And
when you want to start it up in a special position, than the registry would
be my first choise.

Just an idea

Merry Christmas

Cor
 
Back
Top