ASP 1.1: DataGrid - Showing/Not Showing Buttons

  • Thread starter Thread starter Ray Booysen
  • Start date Start date
R

Ray Booysen

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
 
Ray said:
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
Here is the datagrid:
 
Ray said:
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!
 
Back
Top