DataGrid

Lukas

New Member
Hi,<BR><BR>How can I hide a certain column of the datagrid?<BR><BR>Thx.try this:<BR><BR>"select Id, Name from table" -- will display 2 columns<BR><BR>"select Id from table" -- will display just the id column<BR><asp:BoundColumn DataField="CustDESC" SortExpression="CustDESC" HeaderText="CustDesc" Visible="false"></asp:BoundColumn><BR><BR>Set the Visible property dynamically<BR><BR><asp:BoundColumn DataField="CustDESC" SortExpression="CustDESC" HeaderText="CustDesc" Visible="<%#GETVISI("Y")"></asp:BoundColumn> something like that
 
Back
Top