I want to bind a data grid view. After binding, I need to hide a column from the datagrid. My code is:
datagrid.DataContext = Dttable
For each gdColumn as DataGridColumn in datagrid.Columns
If gdColumn.Header = "ID" Then
gdColumn.Visiblity = False
end if
Next
But here datagrid.Columns is 0 even though I have 3 columns.
Please help me to do this