The Immediate window readout is....
?item.Cells(3).Controls(0)
{System.Web.UI.WebControls.HyperLink}
[System.Web.UI.WebControls.HyperLink]:
{System.Web.UI.WebControls.HyperLink}
BindingContainer: {System.Web.UI.WebControls.DataGridItem}
ClientID: "dgbudgets__ctl2__ctl0"
Controls: {System.Web.UI.ControlCollection}
EnableViewState: True
ID: Nothing
NamingContainer: {System.Web.UI.WebControls.DataGridItem}
Page: {ASP.TestFeeder_aspx}
Parent: {System.Web.UI.WebControls.TableCell}
Site: Nothing
TemplateSourceDirectory: "/GridPrinter"
UniqueID: "dgbudgets:_ctl2:_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 said:
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).Findcontrol("yourcontrolname") or
mydataGridItem.cells(3).control(0)