Je cherche un contrôle qui me permettrait de faire ceci :

Section 1
checkbox Element1_Section1
checkbox Element2_Section1
checkbox Element3_Section1
checkbox Element4_Section1
checkbox Element5_Section1
checkbox Element6_Section1
checkbox Element7_Section1
Section 2
Section 3
Section 4
Section 5

Et en cliquant sur Section 3 par exemple j'aurais :

Section 1
Section 2
Section 3
checkbox Element1_Section3
checkbox Element2_Section3
checkbox Element3_Section3
checkbox Element4_Section3
checkbox Element5_Section3
Section 4
Section 5

Etc...

Sachant que l'éléments à afficher sous la forme de checkbox est l'attribut _libelle (ou son accesseur) de la classe ELEMENT

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
public class ELEMENT
{
private string _id_element;
private string _libelle;
...
private SECTION _section;
...
 
}
De même l'intitulé de section est à retrouver dans la classe SECTION.

Je ne sais pas trop faire ça avec Accordion. Un simple Datalist avec du CSS ?
Merci beaucoup,

T.