如何按降序在列表视图中插入项目 [英] How to insert items in a listview in descending order

查看:76
本文介绍了如何按降序在列表视图中插入项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..,



实际上我使用的是listview control.i有两列名为orderno。和tableno。

在那里。我也有两个文本框,1个用于订单输入,另一个用于表没有条目。

当我输入orderno和tableno它将显示在listview中。



所以我的问题是,我希望列表中的那些条目nos upwards.suppose已经有两个ord​​erno和table nos in list.so虽然我通过文本框输入新的orderno和tableno,它应该显示在listview的第一行。



我希望我的问题很清楚..请...任何人都是dere plz帮助我。我被困在ds.its我的紧急要求。请帮助我。

解决方案

只要在列表框中输入您的项目,无论您如何想要,然后排序 [ ^ ]它......

Hi..,

Actually i am using a listview control.i have two column named orderno. and tableno.
in that.I hv two textbox also,1 is for order entry and another is for table no entry.
when i am giving a entry to orderno and tableno it will display in that listview.

so what my problem is,I want those entry nos in list in upwards.suppose there are already two orderno and table nos in list.so while i give entry to new orderno and tableno through the textbox,it should shows in firstline of the listview.

I hope my question is clear..please anybody is dere plz help me out.i am stuck in ds.its my urgent requirement.so please help me.

解决方案

Just enter your items in listbox whatever way you want and then sort[^] it...


这篇关于如何按降序在列表视图中插入项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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