Hello,
I have the following GridView. I need to be able to get to the DataFields
and set the Visible property. Any help with this would be appreciated.
Thanks, sck10
<!-- Grid: List of all the Services from the Textbox -->
<asp:GridView ID="gvSearchDat a" runat="server"
DataSourceID="d sSearchData"
DataKeyNames="H andle"
Width="100%">
<Columns>
<asp:BoundFie ld DataField="strF ullName"
Visible="true"
HeaderText="Nam e"
SortExpression= ""
HeaderStyle-Cssclass="BlkB"
HeaderStyle-VerticalAlign=" Bottom"
ItemStyle-HorizontalAlign ="left"
ItemStyle-Width="15%" />
<asp:CheckBoxFi eld DataField="IsAc tive"
Visible="true"
HeaderText="Act ive"
SortExpression= ""
HeaderStyle-Cssclass="BlkB"
HeaderStyle-VerticalAlign=" Bottom"
ItemStyle-HorizontalAlign ="center"
ItemStyle-Width="7%" />
</Columns>
</asp:GridView>
I have the following GridView. I need to be able to get to the DataFields
and set the Visible property. Any help with this would be appreciated.
Thanks, sck10
<!-- Grid: List of all the Services from the Textbox -->
<asp:GridView ID="gvSearchDat a" runat="server"
DataSourceID="d sSearchData"
DataKeyNames="H andle"
Width="100%">
<Columns>
<asp:BoundFie ld DataField="strF ullName"
Visible="true"
HeaderText="Nam e"
SortExpression= ""
HeaderStyle-Cssclass="BlkB"
HeaderStyle-VerticalAlign=" Bottom"
ItemStyle-HorizontalAlign ="left"
ItemStyle-Width="15%" />
<asp:CheckBoxFi eld DataField="IsAc tive"
Visible="true"
HeaderText="Act ive"
SortExpression= ""
HeaderStyle-Cssclass="BlkB"
HeaderStyle-VerticalAlign=" Bottom"
ItemStyle-HorizontalAlign ="center"
ItemStyle-Width="7%" />
</Columns>
</asp:GridView>
Comment