G
Guest
Hey,
Is it possible to do a databinding to a function, not to a property.
Ex. Object : Invoices - Invoice
Each Invoice has a collection of payments (an invoice can be paied in pieces) - payment
An invoice has also a function : getTotalPaid it returns a double.
Now I have a datagrid (ASP) I want to bind to several propertys of Invoice but I also want to show the getTotalPaid amount and the date of the last paiement.
Is that possible or do I have to make another custom class with a property TotalPaid and a property LastePaimentDate and bind that classe to my datagrid. I think it is a littelbit to much of classes.
tkx,
Nic
Is it possible to do a databinding to a function, not to a property.
Ex. Object : Invoices - Invoice
Each Invoice has a collection of payments (an invoice can be paied in pieces) - payment
An invoice has also a function : getTotalPaid it returns a double.
Now I have a datagrid (ASP) I want to bind to several propertys of Invoice but I also want to show the getTotalPaid amount and the date of the last paiement.
Is that possible or do I have to make another custom class with a property TotalPaid and a property LastePaimentDate and bind that classe to my datagrid. I think it is a littelbit to much of classes.
tkx,
Nic