开发者

Paged Custom ComboBox

开发者 https://www.devze.com 2022-12-19 03:47 出处:网络
I would like to have some sample code on how to do a paginated ComboBox. My data consist on 1300+ items. When the user开发者_如何学C clicks the combo box arrow, the combobox will display display 25 (p

I would like to have some sample code on how to do a paginated ComboBox. My data consist on 1300+ items. When the user开发者_如何学C clicks the combo box arrow, the combobox will display display 25 (page size configurable) items at the time with arrows up/down (depending on page location) so that the user can request the previous/next page. The data is coming from a generic list.(List)

Thus, the idea is to display only a subset of the data at the time.The user can scroll and select from the list as per normal combobox. At the top and bottom of the list should be a new button to request the previous or next page of navigator values.

Note: All data is read only. For legacy issues I can only use Winforms (.net 2.0) and C# but VB.net code will do as well


you might want to consider using a treeview as a dropdown control for your combobox, smth like is done here:

Paged Custom ComboBox

you can get source code for this control here: ComboBox control with a TreeView I guess it should give an idea on how to proceed with your task

regards

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号