Solved

Mdi app manage data

Posted on 2006-12-01
3
154 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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