Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataBinding with a drived class

$
0
0

hi

I have a base (abstract) class "Eroua" with many classes that derive from it.

and I have a List<Eroua> for all the objects together

I have a combobox with enum that determines the type of the object, and I have many of textBoxes and checkboxes... for the properties of each derived class.

the visibility of all the control is false,

and when the value of the combobox changes - the control of the particular type are shown.

all this works fine allready, but how I bind it?

I can't find any way to bind it to a dataSource because there is not one type, and each type have differents properties.

thank you for helping





Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>