showmodaldialog

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sulekhaantil
    New Member
    • Mar 2010
    • 1

    showmodaldialog

    i have a prob that i have a gridview on the parent window.when i open a child window using showmodaldialog ,i enter some data in the textboxes.now when i close my child window i want to display the text entered by me in the grid.


    i want to know how can i access the grid in child window


    plz help me
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You could raise an event when the window is closing that passes the information as the eventArgs parameter. (You would make your own custom class that inherits from EventArgs and to pass the information to the parent page)

    You could make a Public Property that exposes the GridView to an outside class...however you need to be careful with accessing this property when the window is closed.

    You could...do a lot of things to pass the information between windows.

    (Btw, a GridView is used in ASP.NET, and a DataGridView is used in Windows Applications. There is a big difference between these controls)

    -Frinny

    Comment

    Working...