The Immediate window readout is....
?item.Cells(3). Controls(0)
{System.Web.UI. WebControls.Hyp erLink}
[System.Web.UI.W ebControls.Hype rLink]:
{System.Web.UI. WebControls.Hyp erLink}
BindingContaine r: {System.Web.UI. WebControls.Dat aGridItem}
ClientID: "dgbudgets__ctl 2__ctl0"
Controls: {System.Web.UI. ControlCollecti on}
EnableViewState : True
ID: Nothing
NamingContainer : {System.Web.UI. WebControls.Dat aGridItem}
Page: {ASP.TestFeeder _aspx}
Parent: {System.Web.UI. WebControls.Tab leCell}
Site: Nothing
TemplateSourceD irectory: "/GridPrinter"
UniqueID: "dgbudgets:_ctl 2:_ctl0"
Visible: True
but there is no text value or ID that could get a text value. I use
findcontrol a lot for template columns but using the column name with
findcontrol finds nothing. I know the text has to be in there somewhere.
T
"Saravana" <sa******@sct.c o.in> wrote in message
news:Dl******** ********@news.c pqcorp.net...
Hi,
It wont be accessible through mydataGridItem. cells(3).text. You need to
access your control inside controls collection in a cell, for example.
mydataGridItem. cells(3).Findco ntrol("yourcont rolname") or
mydataGridItem. cells(3).contro l(0)
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Tina" <ti**********@r emovespamexcite .com> wrote in message
news:e2******** ******@TK2MSFTN GP12.phx.gbl... I'm going through a DataGridItem looking to find the text in a hyperlink
column. It's not in mydataGridItem. cells(3).text. Where is it?
thanks,
T