ASP 1.1: DataGrid - Showing/Not Showing Buttons

Discussion in 'ASP .Net' started by Ray Booysen, Mar 28, 2006.

  1. Ray Booysen

    Ray Booysen Guest

    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 Booysen, Mar 28, 2006
    #1
    1. Advertisements

  2. Ray Booysen

    Ray Booysen Guest

    Here is the datagrid:
     
    Ray Booysen, Mar 28, 2006
    #2
    1. Advertisements

  3. Ray Booysen

    Ray Booysen Guest

    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!
     
    Ray Booysen, Mar 28, 2006
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.