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 tableau
foreach
(T_CATEGORIES lLigne
in
((CIndicateur)
this
.DataContext).ListeIndicateurs)
{
//mt - On crée une nouvelle instance de ligne
lCol =
new
GridViewDataColumn();
//mt - On lui affecte le nom de la colonne
lCol.Header = lLigne.CAT_NOM;
//mt - On lui affecte le template de la cellule
lCol.CellTemplate = (DataTemplate)XamlReader.Load(Creation_CellTemplateIndicateur(lLigne));
//mt - On ajoute la ligne
pTableau.Columns.Add(lCol);
}
Regards