weixin_33733810 2015-02-23 11:19 采纳率: 0%
浏览 29

动态过滤列表

I have the following data in the table:

ID Category Product
1  Shoes     Puma
2  Shoes     Nike
3  Computer  Acer
4  Shoes     Woodland
5  Computer  Lenovo
6  Shoes     Reebok

There is a one textbox for Productcolumn and dropdown for Category column in the heade. Dropdown has two values: Computer and Shoes. The Requirement is to filter this list dynamically when user types in textbox i.e on keypress event. Eg if user types 'e', then 2nd, 3rd and 6th row should be shown. If user types another word 'r', then only 3rd row should be shown as the Product name contains 'er' in the string. I have written the textchanged event for the textbox which filters the list but it happens when focus from textbox is lost not on each key press.

How can this be achieved in .net 2.0?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 gwas 分析-数据质控之过滤稀有突变中出现的问题
    • ¥15 没有注册类 (异常来自 HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    • ¥15 知识蒸馏实战博客问题
    • ¥15 用PLC设计纸袋糊底机送料系统
    • ¥15 simulink仿真中dtc控制永磁同步电机如何控制开关频率
    • ¥15 用C语言输入方程怎么
    • ¥15 网站显示不安全连接问题
    • ¥15 51单片机显示器问题
    • ¥20 关于#qt#的问题:Qt代码的移植问题
    • ¥50 求图像处理的matlab方案