Share via


Data Binding in the .NET Compact Framework 

All classes inheriting from the Control class support simple data property binding. Additionally, the classes that inherit from ListControl, such as ListBox and ComboBox, can bind to objects that expose IList or IListSource such as an ArrayList.

The .NET Compact Framework version 2.0, supports data binding to a strongly typed DataSet, and you can also bind to a DataSet with schema read from an XSD file.

Data binding cannot automatically convert between differing types, such as between a Color and String or between a null Byte and a String. This does not prevent you from data binding such values, but you need to provide event handlers to parse and format the data appropriately.

NoteNote

You cannot use casting in data binding.

The .NET Compact Framework does not support the SuspendBinding and ResumeBinding methods of the BindingManagerBase class. You can implement this functionality by explicitly unbinding and binding controls.

Data binding in the .NET Compact Framework does not support qualified reference syntax by using periods such as MyTable.MyColumn. You must set data binding properties for a control to an explicit object reference that does not contain any periods.

See Also

Other Resources

Windows Forms Controls in the .NET Compact Framework