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:48:04
 
 
À
25/02/2013 12:34:41
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Divers
Thread ID:
01566855
Message ID:
01566874
Vues:
24
>>>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!

Good. Bit of a kludge tho :-{
You could use a custom header but probably not worth it......
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform