Hyperlink column in a Datagrid using C#


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Hyperlink column in a Datagrid using C#

  1. #1
    Join Date
    Nov 2005
    Posts
    1

    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

  2. #2
    Join Date
    May 2005
    Location
    UK
    Posts
    278
    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

  1. Set datagrid column width
    By kero in forum ASP.NET
    Replies: 3
    Last Post: 10-21-2005, 08:56 AM
  2. DataGrid Column Headers
    By Greg Rothlander in forum ASP.NET
    Replies: 3
    Last Post: 10-23-2003, 02:55 PM
  3. Datagrid Hyperlink column event?
    By Barry in forum ASP.NET
    Replies: 0
    Last Post: 06-04-2003, 04:07 PM
  4. Replies: 1
    Last Post: 07-26-2001, 10:23 AM
  5. CheckBox Column in a DataGrid ?
    By Jim H in forum .NET
    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center