Re: DataGridItemEventArgs and Hyperlinkcolumn
- From: PeterKellner <pkellnernews@xxxxxxxxxxxxxx>
- Date: Tue, 15 Aug 2006 14:29:10 -0700
On Tue, 15 Aug 2006 09:53:02 -0700, Paul
<Paul@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have a dataset (ds) and a Hyperlinkcolumn as the first column.
I want to extract the text of the displayed hyperlink (DataTextField) within
the DataGridItemEventArgs object.
So I try the trusty e.Item.Cells(0).Text. It is blank for a hyperlink column.
I also tried something like e.Item.Cells(0).Controls(0).ToString.
Still no go.
What am I missing?
not such a simple problem. Fritz Onion has a good example of how to
solve this.
GridViewRow row =
(GridViewRow)((Control)e.CommandSource).Parent.Parent;
http://pluralsight.com/blogs/fritz/archive/2005/06/24/11975.aspx
Peter Kellner
http://peterkellner.net
.
- Prev by Date: Re: Controls - Page_init order
- Next by Date: Re: Disabled Idle Timeouts, still timing out after 20 minutes
- Previous by thread: Some easy question about ASP.NET application
- Next by thread: Re: Disabled Idle Timeouts, still timing out after 20 minutes
- Index(es):