C# WPF ComboBox - Exclude last row (or Blank Space) of Binding Data (binding from Microsoft Access)

前端 未结 3 1560
你的背包
你的背包 2021-01-16 07:59

Currently I am using Microsoft Access to keep the data and it will bind to WPF combobox. Below code was working almost fine.

oleDBCommand.CommandText =

\"SE         


        
3条回答
  •  清酒与你
    2021-01-16 08:21

    The combobox will only show the objects you give it, take a closer look at the data coming out of your query. You may need to add an additional filter in the where clause to exclude rows with empty values.

提交回复
热议问题