Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-12
2
Medium Priority
?
728 Views
Last Modified: 2014-02-12
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
Comment
Question by:Murray Brown
2 Comments
 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 39854145
Dim up as new UpdatePanel
up.ContentTemplateContainer.Controls.Add(oGridView)
Me.Table1.Rows(0).Cells(5).Controls.Add(up)
0
 

Author Closing Comment

by:Murray Brown
ID: 39854206
Thanks very much
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

926 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