Hinweis: Dieser Artikel wurde ursprünglich veröffentlicht in 2009. Einige Schritte, Befehle oder Softwareversionen haben sich möglicherweise geändert. Überprüfen Sie die aktuelle Dokumentation von General für die neuesten Informationen.

Currently I have a Gridview that uses the following TemplateField:

                   

                        <asp:TextBox  ID=“txtRangeFrom” runat=“server” Text=’<%# DataBinder.Eval(Container.DataItem, “ScoreRangeLow”) %>’ >

                        </asp:TextBox>

                         

                              <asp:TextBox  ID=“txtRangeTo” runat=“server” Text=’<%# DataBinder.Eval(Container.DataItem, “ScoreRangeHigh”) %>’ >

                        </asp:TextBox>

                   

When trying to update my datasource I have the issue that I can’t read the values stored in the Datasource. How can I programatically access the values in the grid as well as the values stored in other controls inside a particular cell?

Zusammenfassung

Verwandte Artikel