Bonjour tout le monde,
J'utilise un datarepeater dans un IHM qui herite de UserControl
J'affiche mes donnees dans le datarepeater de la maniére suivante
Public void TOTO( )
{
BindingSource bs = newBindingSource();bs.DataSource = _dtDataDonneesCategories;
txtNomChamp.DataBindings.Add(
"Text", bs, "Nom_Categorie");chckBoxActivation.DataBindings.Add(
"Checked", bs, "Activation_Categorie");
}
Mon probléme est le suivant:
Lorsque mon IHM herite de FORM mes donnees sont affichés sans probléme avec un ShowDialogue
Par exemple MonIHM MyIHM = new MonIHM( )
MyIHM.TOTO()
MyIHM.ShowDialogue( ) MES DONNES SONT AFFICHES SONT PROBLEME
Mais quand Mon IHM herite de UserControl
PAR EXEMPLE MyIHM : UserControl
Quand je fais MyIHM.TOTO();
Mon Datarepeater est vide
Quelqu'un peut me depanner SVP
Merci d'avance