how to refresh grid on parent form from child form

2 posts, 0 answers
  1. Dao
    Dao avatar
    13 posts
    Member since:
    Oct 2008

    Posted 21 Aug 2009 Link to this post

    hi all
    i use radMDI form and show a radchild form
    in radchild form i use a rad grid
    i want rad grid clicked will show a dialog form and when the dialog form close will refresh gird in parent form
    anybody help me
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 24 Aug 2009 Link to this post

    Hello Dao,

    Thanks for writing. In your case you could simply pass a reference to RadGridView control in your dialog form and use this reference to refresh the grid when the form closes. Take a look at this code snippet:

    public class MyDialogForm : RadForm  
        private RadGridView grid;  
        public MyDialogForm(RadGridView gridView)  
          this.grid = gridView;  
        protected override void OnClosing(CancelEventArgs e)  
            //Refresh the grid.  

    As you can see, I am using the OnClosing event of the form to perform the operations on RadGridView.

    I hope this is helpful.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft R3 2016 release webinar banner
Back to Top