Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell what column or cell is being edited
Message
De
25/02/2013 12:34:41
 
 
À
25/02/2013 11:49:08
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01566855
Message ID:
01566873
Vues:
29
>>e.Column.Header gives me "Invoice #", but if I then change the # to "Number" because that's what the client wants then my code breaks. I can't see anything in there that gives me "txtInv_Number"
>
>Don't know if you can get that. Bit ugly but could you depend on the binding? :
DataGridBoundColumn b = e.Column as DataGridBoundColumn;
>            var v = b.Binding as System.Windows.Data.Binding;
>            if (v.Path.Path == "crt_invfk")
>            {
>               //This is the column
>            }
thanks Viv, that works for me!
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform