How to handle a click in a DataGrid without EnableViewState=false?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DC

    How to handle a click in a DataGrid without EnableViewState=false?

    Hi,

    I want to present hirarchical data in a gridview. Each row offers a
    link to another data subset.

    When viewstate is off, I have to early rebuild the gridview just to
    raise the damn click event (right?). Using viewstate (no matter where)
    to rebuild the gridview is no option since the gridview may contain
    many rows. I then have to get the newly requested data - two expensive
    trips to the database, one of them not necessary in my opinion.

    I could just place an anchor in the gridview and trigger a get request
    with the row number in the querystring. But that is no option either,
    since the gridview resides in an updatepanel and the datagrid update
    is supposed to happen in a callback.

    Does someone have an idea how to work around this problem?

    Regards
    DC
Working...