Could you please provide a solution for my issue.
I have a datatable with me in excel sheet with 3 columns and I need to sort it based on column Incomplete.
I tried different approaches like
Assign activity = (From x In statisticsDt .AsEnumerable()Order By convert.ToString(x("Incomplete“))Select x).CopyToDataTable()
dt.DefaultView.Sort = ("[columnname] ASC")
dt = dt.DefaultView.ToTable
After using above solutions I got like this. which is not correct.