1 siva 2 elvis 2 john 2 peter 解决方案 试试这种方式: YourListView.Items.SortDescriptions.Add(新 SortDescription( Column1)); YourListView.Items.SortDescriptions.Add( new SortDescription( 列2)); I have a window form listview with 2 columns Now am able to do sort the 2 columns individually by clicking the header.What actually i need is, if first column values are unique then it should sort its second column in ascending order.e.gActual listviewcolA colB1 siva2 elvis1 ram2 peter1 Ajay1 kumar2 johnneeded resultcolA colB1 Ajay1 kumar1 ram1 siva2 elvis2 john2 peter 解决方案 Try this way:YourListView.Items.SortDescriptions.Add(new SortDescription("Column1"));YourListView.Items.SortDescriptions.Add(new SortDescription("Column2")); 这篇关于列具有唯一值时的Listview排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-14 22:50