This is a discussion on How to hide a column in datagrid dynamically in ASP .NET? within the C# Programming forums, part of the Software Development category; How to hide a column in datagrid dynamically in ASP .NET?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| You may hide the column in the datagrid using their columnindex as follows, foreach (DataGridColumn columnIndex in Datagrid.Columns) { if (columnIndex.HeaderText == <Column Name to Hide>) columnIndex.Visible = false; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to add a Datetimepicker column in Datagridview in VB.NET 2005 | psivakumarmca81 | VB.NET Programming | 1 | 12-30-2008 07:02 PM |
| Foreign key column | leoraja8 | Database Support | 6 | 10-15-2007 11:27 PM |
| applying color to specified column in datagrid | nssukumar | Flash Actionscript Programming | 4 | 03-22-2007 10:31 AM |
| Adding a new Column in middle of the Table | Murali | Database Support | 3 | 03-05-2007 11:59 PM |
| Hide URL: How to? | Floppix | PHP Programming | 2 | 02-25-2007 02:29 AM |