This question is locked. New answers and comments are not allowed.
Hello,
I have a on RadGridView on my page. I'm building all columns programmatically. Most columns I'm using are GridViewDataColumns, and I have a couple of GridViewDynamicHyperlinkColumns. The latter has a cool feature where I can pass a parameter to form a URL to which the link navigates like so:
GridViewDynamicHyperlinkColumn myHyperlinkColumn;
myHyperlinkColumn.NavigateUrlFormatString = "http://mysite/{0}";
myHyperlinkColumn.NavigateUrlMemberPaths = "SomeParameter";
Now I'm trying to add two more columns. Each colum needs to have the same image for all records, but different links need to be formed so when a user clicks the image, he/she is taken to different pages depending on the record (or grid row) that was clicked. One column is, pretty much, boils down to a "mailto:blah" link, the other one is similar to my GridViewDynamicHyperlinkColumn in structure with the only difference that instead of a hyperlink, I need to have a static image in the cell.
How can i build these columns programmatically? How can I append a parameter from my dataset to a link (similar to my GridViewDynamicHyperlinkColumn) and have an image instead of a hyperlink?
Thank you!
- VK.
I have a on RadGridView on my page. I'm building all columns programmatically. Most columns I'm using are GridViewDataColumns, and I have a couple of GridViewDynamicHyperlinkColumns. The latter has a cool feature where I can pass a parameter to form a URL to which the link navigates like so:
GridViewDynamicHyperlinkColumn myHyperlinkColumn;
myHyperlinkColumn.NavigateUrlFormatString = "http://mysite/{0}";
myHyperlinkColumn.NavigateUrlMemberPaths = "SomeParameter";
Now I'm trying to add two more columns. Each colum needs to have the same image for all records, but different links need to be formed so when a user clicks the image, he/she is taken to different pages depending on the record (or grid row) that was clicked. One column is, pretty much, boils down to a "mailto:blah" link, the other one is similar to my GridViewDynamicHyperlinkColumn in structure with the only difference that instead of a hyperlink, I need to have a static image in the cell.
How can i build these columns programmatically? How can I append a parameter from my dataset to a link (similar to my GridViewDynamicHyperlinkColumn) and have an image instead of a hyperlink?
Thank you!
- VK.