Tab Control

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

Guest

I have a form that I would like to make a master-detail form several times over using a tab control. The master data will be on the main form and there will be several detail sections on the tabs. It does not appear that each tab can have a seperate datasource. Is there a way to do this without adding one huge dataset to the form? Perhaps there is a custom control out there that someone has used?
Any help would be greatly appreciated.
 
Hi Manch,

I have a form that I would like to make a master-detail form several times
over using a tab control. >The master data will be on the main form and
there will be several detail sections on the tabs. It >does not appear that
each tab can have a seperate datasource. Is there a way to do this without
adding one huge dataset to the form? Perhaps there is a custom control out
there that someone has >used?

Why can each tab not have a seperate datasource, I do it all the time,
although when it is mixed up data, you have by changing a tab to refresh it
every time the tab is changed?

Cor
 
I am new to this ADO.NET thing. It seemed like the form might be too involved and slow with so many sqldataAdapters and datasets, I thought there might be a cleaner way of doing it. I will give it a shot and see how it works. Thanks for the advice, I'll let you know how it works.

Manch
 
Hi Manch,

Check the dataset.haschanges, dataset.getchanges method and
dataset.acceptchanges.

If you are working with huge datasets.

In a shortcut but check it:
(haschanges looks if there are changes in the dataset)
(getchanges takes those changes from the dataset)
(acceptchanges marks the changes as processed)

Cor
I am new to this ADO.NET thing. It seemed like the form might be too
involved and slow with so >many sqldataAdapters and datasets, I thought
there might be a cleaner way of doing it. I will give it >a shot and see
how it works. Thanks for the advice, I'll let you know how it works.
 
Back
Top