Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to access GridView in different Content? 1

Status
Not open for further replies.

russland

Programmer
Jan 9, 2003
315
CH
Hi,

I'm having 2 Content areas on my masterpage. One on the left, on on the right. Simple. How can I access the GridView, wich is on the left, from the DetailsView, which is on the right Content area?

I need the DetailsView to be refreshed as soon as I selected another record on the gridview. (this of course works nicely if i put both in the same content area).

thanks for an hints or ideas.
 
You'll have to use the FindControl method on the relevant controls parent and/or expose a Public Property that allows it to be refreshed.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
expose apublic property? ehh. How do I do this with the Content1.GridView1 control?


anyway, thanks for that hint
 
To create a Public Property, you would just do something like:
Code:
    Public Property ShowMyGridview() As Boelean
        Get
            Return GridView1.Visible
        End Get
        Set(ByVal value As Boolean)
            GridView1.Visible = value
        End Set
    End Property


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top