This question is locked. New answers and comments are not allowed.
Hello and thank you
in
advance for your reply.
The goal of our program is to display an array generated automatically.
For
this, we define in the
code
behind
the
different columns, then we add them
to
RadGridView.
The problem is that we would keep the filter on headers for all columns.
We would
like to know how to implement the header
of
the column dynamically to keep
our
text, but
adding the filter area that you have
already encoded.
//mt - Pour chaque colonne du tableauforeach (T_CATEGORIES lLigne in ((CIndicateur)this.DataContext).ListeIndicateurs){//mt - On crée une nouvelle instance de lignelCol = new GridViewDataColumn();//mt - On lui affecte le nom de la colonnelCol.Header = lLigne.CAT_NOM; //mt - On lui affecte le template de la cellulelCol.CellTemplate = (DataTemplate)XamlReader.Load(Creation_CellTemplateIndicateur(lLigne));//mt - On ajoute la lignepTableau.Columns.Add(lCol);}
Regards