Solved

Mdi app manage data

Posted on 2006-12-01
3
153 Views
Last Modified: 2013-12-03
Hello all,

Ive got a MDI application with few child forms. Ive created dataset and dataadapeters through the wizard.

My question is.. do i fill the dataset when the mdi form loads? or do i have to fill the dataset and drag the dataadapters in each child form??...
0
Comment
Question by:arcross
  • 2
3 Comments
 
LVL 6

Expert Comment

by:manch
ID: 18052618

that depends on ur Need
If u r filling the DataSets on MDIForm load
that means u will be using the Data Throught the application from the MDI Form start

if some data must be filled when the Forms open then u must fill the DataSet on the InitialiseComponent Event of the Form
or in the Load Event of the form (choose any one of them)
and try to dispose or free these data on close of the form (if they r not required)

Do decide the need according to ur application and Fill or Free them


0
 
LVL 8

Author Comment

by:arcross
ID: 18052652
thanks manch.

But which approach is better?? if i fill it when the form loads how do i do to update the data in any of the child forms?? how do i refer to the datadapter created by the wizarD?

thanks again
0
 
LVL 6

Accepted Solution

by:
manch earned 250 total points
ID: 18052671

on child forms the MDIParent adapter can be referred as follows :

U can refer as Me.MdiParent.AdapterName
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question