ObjectDataSource - stopping databind after Selected event?

Discussion in 'ASP .Net Web Controls' started by KJ, Jun 30, 2006.

  1. KJ

    KJ Guest

    Hello,

    I have an ObjectDataSource (ODS) that is the datasource for a GridView.
    I run the DataBind() method of the GridView, then, the Select() method
    of the ODS is implicitly called. So far, so good. Then, I handle the
    Selected event of the ODS. After I check the result count and the value
    of an output parameter, I may want to cancel the binding based on the
    results. I see that this can be done when handling the Selecting event,
    but not the selected event.

    Any ideas on how to achieve this?

    -KJ
    KJ, Jun 30, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ibiza
    Replies:
    2
    Views:
    1,976
    ibiza
    Jan 26, 2006
  2. Jai
    Replies:
    0
    Views:
    2,261
  3. Jai
    Replies:
    0
    Views:
    743
  4. Michael
    Replies:
    0
    Views:
    210
    Michael
    Dec 29, 2003
  5. RenatoGuarilha
    Replies:
    0
    Views:
    231
    RenatoGuarilha
    Dec 21, 2005
Loading...

Share This Page