[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 735
  • Last Modified:

ASP.net VB.net Dynamically add an Update Panel then a GridView to that

Hi

I am using the following code to dynamically add a GridView to a table cell
How do I update the code so that I first add an update panel to the table cell
and then add the GridView to that Update Panel?

Dim oGridView as New GridView
Me.Table1.Rows(0).Cells(5).Controls.Add(oGridView)
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Kyle AbrahamsSenior .Net DeveloperCommented:
Dim up as new UpdatePanel
up.ContentTemplateContainer.Controls.Add(oGridView)
Me.Table1.Rows(0).Cells(5).Controls.Add(up)
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now