ASP 1.1: DataGrid - Showing/Not Showing Buttons

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
 
R

Ray Booysen

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:
 
R

Ray Booysen

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top