0
Reply

Hide a column in Datagrid

sourcehoh

sourcehoh

Feb 2 2005 1:58 AM
3.5k
I'm facing a problem in hiding a Datagrid's column in CF. I created a Datatable with 5 Columns and populated it with some dummy records. When I bind to datagrid, the grid show me all the 5 columns. So, the question is how can I hide a particular column in DataGrid ? ( I want to hide the first column in my datatable ). I manage to hide the column in Win32 winform but it doesn't work in CF. And the code is showed below aTable.Columns[0].ColumnMapping = MappingType.Hidden; Please help. thank you