dotnetmonitor.com

 
Index
Previous
Next

 

When data bound, the Windows Forms ComboBox does not provide a general way to add a null or not selected value to its items list. The only generally supported way to do this is to add a null item to your data source list. Building on the previous states example, this would require an additional null row to be manually added to the States table
Simple Binding
Complex Binding
Using Simple Binding with a List
Sample: Simple Binding to a List (VS 2005) (VS Project: DataBinding Intro)
Type Conversion
Formatting