index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP DataGrid |
| |||||||
Jun 17 2004, 5:00 AM |
| ||||||
ghost from: Washington, DC | You can hide a column using the Hidden property as follows objGrid.HiddenColumn(Field Name) A simple implementation might look like the example below <% objGrid.Command = "SELECT NameField, AddressField, SalaryField FROM Employees" 'if some condition, then hide the employee's salary If Not Session("Department" )= "ADMIN" Then objGrid.HiddenColumn( "SalaryField" ) End If 'create your connection objGrid.CreateConnection(Connection String) 'display your reports objGrid.Display %> ------------------------- Ghost | ||||||
Pages: (1) [1] |