We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 10:42 AM

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.
Live Chat Icon For mobile
Up arrow icon