I found a controls collection that has the hyperlink but nothing with the
value that shows in the grid.
?item.Cells(3).Controls.Item(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
Ken Cox said:
Hi Tina,
Try setting trace="true" in your page so you can see all of the objects
that
appear. You might find that there are literal controls in the item that
you
haven't accounted for.
Ken
MVP [ASP.NET]
Tina said:
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