G
Guest
I have reseached and the following code should hide my column, but it does
not any ideals?
Dim InvDataGrid As DataTable
dgInv.TableStyles.Clear()
InvDataGrid = New DataTable("InvData")
InvDataGrid.Columns.Add("Inv", Type.GetType("System.String"))
InvDataGrid.Columns.Add("ItemID", Type.GetType("System.String"))
InvDataGrid.Columns.Add("DueDate", Type.GetType("System.String"))
InvDataGrid.Columns.Add("Sel", Type.GetType("System.String"))
InvDataGrid.Columns.Add("Index", Type.GetType("System.String"))
'hide the index column
InvDataGrid.Columns(5).ColumnMapping = MappingType.Hidden
not any ideals?
Dim InvDataGrid As DataTable
dgInv.TableStyles.Clear()
InvDataGrid = New DataTable("InvData")
InvDataGrid.Columns.Add("Inv", Type.GetType("System.String"))
InvDataGrid.Columns.Add("ItemID", Type.GetType("System.String"))
InvDataGrid.Columns.Add("DueDate", Type.GetType("System.String"))
InvDataGrid.Columns.Add("Sel", Type.GetType("System.String"))
InvDataGrid.Columns.Add("Index", Type.GetType("System.String"))
'hide the index column
InvDataGrid.Columns(5).ColumnMapping = MappingType.Hidden