I have project which need a modification. I need to sort column in table. The problem is that column contains label or dropdown list depending from outside data to which i don't have acces.
<asp:TemplateField HeaderText="System" >
<ItemTemplate>
<asp:Label ID="LabelSystem" runat="server" Text="Failure" />
<asp:DropDownList ID="DropDownListSystem" runat="server" DataTextField="name" />
</ItemTemplate>
</asp:TemplateField>
Can someone assist? I need to sort element depending of the type of element ordered by name. So for exp. FirstLabel SecondLabel FirstDropDownList SecondDropDownList ThirdDropDownList
To better explain what is on my mind I prepared the illustrations :)
Table before sorting:
Now after pressing "System" it should sort column in one of this two ways: