Greetings,
I have a Radlistview, a Textbox, and a Button. User enters a decimal or non-decimal number in the Textbox (For example, 3.1) and clicks the button.
Here is the clicking event of the button :
' RadlistView sorting is enabled in loading event of my form.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Radlistview1.Items.Add(Textbox1.Text)
Dim sort = New SortDescriptor("Text", ListSortDirection.Ascending)
Radlistview1.SortDescriptors.Add(sort)
End Sub
I did a test :
1- Adding the first item to RadlistView with textbox value set to 20.
2- Adding the Second item to RadlistView with textbox value set to 2.1.
As sorting direction is set to Ascending (also tested with descending), 2.1 should be placed as the first item because it is smaller than 20. But it doesn't work.
I appreciate any solution to this issue. Thanks