-
Hyperlink column in a Datagrid using C#
could any one plz send me a sample code on how to create a hyperlink column in a Datagrid?
E.g:
Name Details Date
suppose the above 3 represent the column names. I need the data in the Details column to be a hyperlink. These columns are obtained from the database. How can i do this in C#.
Thanks in advance
-
In the itemcreated event of the datagrid
Create a hyperlink control set its text to the value of the column and then add the control to controls collection of the cell this would ensure your job is done
Sri
Similar Threads
-
Replies: 3
Last Post: 10-21-2005, 08:56 AM
-
By Greg Rothlander in forum ASP.NET
Replies: 3
Last Post: 10-23-2003, 02:55 PM
-
By Barry in forum ASP.NET
Replies: 0
Last Post: 06-04-2003, 04:07 PM
-
Replies: 1
Last Post: 07-26-2001, 10:23 AM
-
Replies: 1
Last Post: 06-11-2001, 06:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks