Hi,
I have created a webgrid and bounced it to a dataTable which is related to another dataTable (in order to have drill down).
I defined hidden columns in both dataTables, but still these columns are presented in the webGrid.
below is part of the code:
// Set the WebGrid's view type to Hierarchical
//Hide the irrelevant columns
resDataSet.Tables[1].Columns["parent_eventID"].ColumnMapping = MappingType.Hidden;
resDataSet.Tables[1].Columns["cascadeID"].ColumnMapping = MappingType.Hidden;
this.wGrid_RRCalc.DataSource = resDataSet.Tables[2];
this.wGrid_RRCalc.DataBind();
Please advice
Thanks
Maya
I would set the .Hidden property of the columns in the grid.
MyGrid.Bands(0).Columns(0).Hidden = True
(And, of course, hard-coded constants are not the best way to specify which band or column.)
First of all - Thanks.
Now I have few problems:
So, as I understand - from the webGrid point of view there is no meaning to the hidden columns of it's bounded dataTable ???