jdlwright
1/27/2007 2:27:00 AM
Thanks for replying - unfortunately I have tried looking at Parent - it
only contains my control and the GridView. As far as I can see,
there's no way to access the ItemTemplate, as it's not listed in
GridView.Controls (in fact, GridView.Controls.Count==0).
On Jan 26, 1:31 pm, Nathaniel Greene
<Nathaniel.Gre...@community.nospam> wrote:
> Obvious question, but have you had your designer check your control's Parent
> ? and see who it is and then iterate until you've found your ItemTemplate?
>
>
>
> "jdlwri...@gmail.com" wrote:
> > Hi, I need my control to access other controls that are located in the
> > ItemTemplate of a GridView - at designtime.
>
> > I had success in the past with DataGrid, doing this by calling
> > FindControl at design-time - however it doesn't work with GridView.
>
> > So basically in the EditValue method of my UITypeEditor I would access
> > the DataGrid with FindControl and then call FindControl on it to get at
> > the control I was after.
>
> > Is there anyway to access controls that are in a GridView template?
>
> > Many thanks,
> > Jim- Hide quoted text -- Show quoted text -