Solved

ASP.net VB.net referring to dynamically created GridViews

Posted on 2014-02-16
2
242 Views
Last Modified: 2014-02-17
Hi

How do I refer to a GridView that has an ID created dynamically  using code like the following

   Dim oGridView As New GridView
        oGridView.ID = "xChartGridView" & Cstr(oCounter)

Something like:
Dim G as GridView = Controls(xChartGridView" & Cstr(oCounter))
0
Comment
Question by:murbro
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39863333
You can use FindControl method as well as the technique I mentioned in other thread of maintaining a List(of GridView) variable in session.
0
 

Author Closing Comment

by:murbro
ID: 39864188
Thanks very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now