dotnetmonitor.com

 
Index
Previous
Next

 

Simple binding does not directly support data source property concatenation however you can use the Binding Format event to concatenate multiple data source properties. To do this you need to add a Binding to the primary property (or one of the data source properties you want to concatenate) and use the Format event to concatenate the multiple property values. Note that although this will generally work as expected, there are times where the Format event may not produce the desired results. Since the binding is bound to a single data source property, the Control will only update when the bound data source property changes. If you need the Control to update when either property changes, then you will need to write additional code to update the Control when the secondary property changes.
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