modifying Template control attributes

Discussion in 'ASP .Net Datagrid Control' started by Mark, Jan 12, 2004.

  1. Mark

    Mark Guest

    I have a user control which contains a datagrid of textboxes and dropdowns
    which are all template columns.
    I need to validate the fields when the user posts back and change the
    CSSClass property on any offending fields.
    It looks like you can ONLY modify properties of controls in template
    controls on the item_created event. ?
    I can get a reference to the control in other events AFTER the item_created
    and get the values, but at that point
    when I set the CSSClass it doesn't work. The code doesn't break, but the
    style isn't applied.

    can someone confirm this, or is there some way you can modify template
    column controls AFTER the item_created event?
    Mark, Jan 12, 2004
    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.