title: gridview databinder.eval question
body: <p>We've got a number of gridviews that we're populating with data from an ADABAS datasource via some middleware that, unfortunately, gives us back lots of arrays of stringBuilder that we turn into a datatable, set as the datasource for a gridview, then bind.</p>
  
  <p>It's convoluted, but I'm in a situation where I need to be able to update the gridview (say, drop a row), without going back to the mainframe, deleting the row, and regenerating the datatable, as I would if we had an Oracle datasource.</p>
  
  <p>So, I'm trying to hack something together where on serverside I extract the data from the gridview, build a datatable, delete the given row, then use that datatable as the datasource for the gridview, and rebind.</p>
  
  <p>I can do it on a case by case basis, so long as I know the layout of the gridview.  But we're going to be doing this over and over on this current project, I'm trying to figure out a way to abstract it so that I can use it for any gridview I throw at it.</p>
  
  <p>The problem I'm getting is that most of the cols in the gridview are templatefields with asp:labels, where the data is put in with the databinder.eval thing:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Code"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Label ID="lblCode" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "code")%&gt;'&gt;&lt;/asp:Label&gt;&lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  &lt;asp:TemplateField HeaderText="Title" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center"&gt;
      &lt;ItemTemplate&gt;
          &lt;asp:Label ID="lblTitle" runat="server" Text='&lt;%# DataBinder.Eval(Container.DataItem, "title")%&gt;'&gt;&lt;/asp:Label&gt;&lt;/ItemTemplate&gt;
  &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>So, when building my 'fake' datasource, I need to be able to extract from somewhere in the gridview those column names.</p>
  
  <p>Is that information available in the gridview?</p>