create HyperLinkColumn from code behind file dynamically
Posted on 2005-04-18
I am just wondering whether I can somehow create columns of type: HyperLinkColumn from the code behind file.
Here is the situation. I have a datagrid and I successfully bind a table to it (using a dataset). I don’t know the size of the table in advance (neither the number of rows nor the number of columns). Some of the columns contain unique names of files, which are stored on the web server. I would like to enable the user to download these files by clicking on the hyperlink.
Is this possible? Any pointers (e.g. C# code) would be very much appreciated. Many thanks in advance.