如何在C#.net中对组合框数据进行排序 [英] how to sort combo box data in C#.net

查看:92
本文介绍了如何在C#.net中对组合框数据进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序员工ID加载到组合框但是未排序的order.how以排序顺序查看组合框数据

in my application employee id load into combo box but that unsorted order.how to view combo box data in sorted order

推荐答案



您可以通过选择查询提供订单
Hi,
You can provide order by in select query


您可以通过将Sorted属性设置为True并省略索引来指定按字母顺序将项目添加到列表中。排序不区分大小写;因此,单词chardonnay和霞多丽和霞多丽。处理相同。

当Sorted属性设置为True时,使用带索引参数的AddItem方法可能会导致不可预测的未排序结果。
You can specify that items be added to a list in alphabetical order by setting the Sorted property to True and omitting the index. The sort is not case-sensitive; thus, the words "chardonnay" and "Chardonnay" are treated the same.
When the Sorted property is set to True, using the AddItem method with the index argument can lead to unpredictable, unsorted results.


Go到属性面板并将false更改为true。
Go to property panel and change sort false to true.


这篇关于如何在C#.net中对组合框数据进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆