I tried searching all the websites but i am unable to get this through. If someone can guide me through will be very helpful.
I have 2 grids on form
MainForm
. 1
MainGrid
and 1
ReportGrid
. I have a Button
Show Report
on a form
I use the below code to show my report form in the
ReportGrid
Dim Frm As New ReportForm
MainGrid.IsEnabled=False
ReportGrid.Children.Add(Frm)
This will overlap the Usercontrol on top of my Main form. This works perfectly till here.
On my user control
ReportForm
, I have a
Back
button when clicked, it should close the loaded user control and then enable the
MainGrid
Again.
Now problem is, How to remove the usercontrol from the Reportgrid on Main form? is my question.
I've been searching for solutions over internet for hours with all possible snippets but none worked for me. Any Help would greatly be appreciated.