datatable currency not sorting while using with asp label

datatable currency not sorting while using with asp label

madhav14791madhav14791 Posts: 1Questions: 1Answers: 0

Hello,
I am new to datatables and I need help. I am using datatable currency sorting in my asp.net project. I am trying to sort a column having data of currency. The data is displayed using <asp:label ID= "xyz " runat="server"><%#Eval("VariableName",{0:c0}") %>
I have written this code inside
<asp:repeater...>
<ItemTemplate>
<asp:label ID= "xyz " runat="server"><%#Eval("Variablename",{0:c0}") %>

I am displaying the values in the table.
If I use this code, sorting is not working. It works when I remove <asp:label ID= "xyz " runat="server">. I can not remove this snippet as I am using this label somewhere on the same page. I trying to use currency sorting plugin and then in pageLoad method, I used "aoColumns" : {'sType' : 'currency' }. But I can't get it worked.
Kindly help me to find it out. I got stuck in it.

Thanks.

This discussion has been closed.