title: GridView RowDataBound doesn't fire on postback
body: <p>On an ASP.NET page, I have a GridView populated with the results of a LINQ query.  I'm setting the DataSource in code, then calling DataBind on it.  In the GridView's RowDataBound event, I'm selectively hiding links in some GridView fields based on the query results.  (For instance, I hide the "Show Parent" link of the row in question has no parent row.)</p>
  
  <p>This works fine initially.  But on postback (when I <em>don't</em> call DataBind, but the GridView stays populated through ViewState), the data displays, but the RowDataBound event (obviously) doesn't fire, and my links don't get hidden.</p>
  
  <p>What's the best way to get the links to be hidden after a postback?</p>