Wizilling
asked on
multiple hyperlinks in a single cell in gridview
Hi, Is it possible to have multiple hyperlinks in a single cell of a gridview.
my asp.net application is similar to a customer orders scenario. 1 customer can have multiple orders. These multiple orders are saved as varchar fields in a column of the SQL Database.
(reason: these orders are from another 3rd party application)
My gridview can display the orders OK if its just 1 order. Ie in Hyperlink format.
But when I SQL column has multiple values seperated by comma, My gridview is unable to seperate the hyperlinks.
How do i separate the coma separated values from SQL Server into multiple hyperlinks displayed in one cell of the gridview.
Eg. Sql database column has value like "12345, 6789, 2468"
Grid should display links as (in one cell)
http://xxx/id=12345, http://xxx/id=6789, http://xxx/id=2468
I am using asp.net , c#, sql 2008.
my asp.net application is similar to a customer orders scenario. 1 customer can have multiple orders. These multiple orders are saved as varchar fields in a column of the SQL Database.
(reason: these orders are from another 3rd party application)
My gridview can display the orders OK if its just 1 order. Ie in Hyperlink format.
But when I SQL column has multiple values seperated by comma, My gridview is unable to seperate the hyperlinks.
How do i separate the coma separated values from SQL Server into multiple hyperlinks displayed in one cell of the gridview.
Eg. Sql database column has value like "12345, 6789, 2468"
Grid should display links as (in one cell)
http://xxx/id=12345, http://xxx/id=6789, http://xxx/id=2468
I am using asp.net , c#, sql 2008.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use GridView Templates (e.g. Item Template) and then design the structure of your hyperlinks in the template (e.g. hyperlinks in tables or divs)