D
Dave E
I have a DataGrid set up and it works great. Because I need to modify the data on the fly and I don't know what columns I will have I create template columns programmatically adn add them to the datagrid. That works all fine and dandy. However I am now trying to add sorting and I cannot figure out how to assign the Sort function. I have created my template class from ITemplate and have the InstantiateIn function created. If I just add the Allowsorting and OnSortCommand to the definition in .aspx file it does not give me links the column headers. If I add them programmatically it also does not get me links in the column headers. I am assuming this problem is because I have the Template class that takes over the rendering of the items.
My question is, how would I add this to the InstantiateIn function in the Template class? I do not have a clue. I have tried a variety of things but cannot seem to get it to work.
My question is, how would I add this to the InstantiateIn function in the Template class? I do not have a clue. I have tried a variety of things but cannot seem to get it to work.