|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
how to get the text value of a cell in a column that is not visiblI have a grid control with an invisible column. I use something like this
usually: string s = gvDNR.SelectedRow.Cells[1].Text; however when the column is not visible the text is always empty. Where is it kept? If I remember correctly you have to use a template field:
<asp:TemplateField Visible="false"> <ItemTemplate> <asp:Label ID="lblPKID" runat="server" Text='<%# Eval("PKID") %>' /> </ItemTemplate> </asp:TemplateField> On Thu, 20 Sep 2007 12:36:04 -0700, Brian <Br***@discussions.microsoft.com> wrote: Show quote >I have a grid control with an invisible column. I use something like this >usually: >string s = gvDNR.SelectedRow.Cells[1].Text; >however when the column is not visible the text is always empty. Where is it >kept? |
|||||||||||||||||||||||