Ray Booysen wrote:
> Hi all
>
> I have a collection of Invoices that I bind to a datagrid. Some of
> these invoices have been processed and you can tell this via a property
> in the invoice class called DateProcessed. If an invoice has been
> processed I do not want a button to display for this invoice but all
> other unprocessed invoices need the button to be displayed.
>
> Any ideas?
>
> Regards
> Ray
OK, don't worry about it. I can check this via the ItemDataBound()
event and disable the relevant row's cells from there.
I can retrieve the invoice I require from the e.Item.DataItem property.
Thanks!
|