Column header for indent cell.

With GridDataBoundGrid the expand/collapse column ( the one with +/- button) used to have its separate column with column header. Now in GridGroupingControl there doesnot seem to be any column header for that column. The problem is i need provide a feature of collapseAll/ExpandAll through a +/- displayed on the column header. What is the neat way of doing it?? do i have to do drawing in that column.

1 Reply

AD Administrator Syncfusion Team September 16, 2004 02:42 PM UTC

Hi Naveed, with the GridGroupingControl the ColumnHeader cell on top of the indent column with +/- cells will be made a covered range that spans the first column and any indent cells before. If you want to change this behavior and not make the column header become a covered range, you could try and handle the groupingControl.TableModel.QueryCoveredRange event. In your handler you could check if Table.DisplayElements[e.RowIndex] is ColumnHeaderRow and if that is the case set e.Handled = true so that the default covering for column header cells will not take place. Stefan

Loader.
Up arrow icon