VS2005下的GridView對隱藏欄
1.
<asp:BoundField DataField="seq" HeaderText=""  visible=false>在讀取時gridview1.rows(0).cells(0).text是讀取不到值的
2.
 <asp:TemplateField HeaderText="尺寸">
                                <ItemTemplate >
                                <asp:textbox runat=server ID="bsize" Width="40px"  Text='<%# container.dataitem("bsize") %>'   Font-Names="
新細明體" Font-Size="9pt"   MaxLength=10  visible=false />
                                </ItemTemplate>
                                </asp:TemplateField>
讀取時用ctype(gridview1.rows(0).findcontrol("bsize"),textbox).text則可讀到

posted on 2007-08-22 13:29  小哈  阅读(254)  评论(0编辑  收藏  举报