I have a virtual grid, built with the designer. I set all my events there including QueryCellInfo, QueryColCount, QueryRowCount, QueryRowHeight and QueryHideCol. I didn''t see an explanation in the documentation for QueryHideCols, so I took it to mean (from the docs on GridRowColHideEventArgs) that this could be used to dynamically manage which rows or columns were hidden in much the same way that data is managed through the other methods.
I set a breakpoint at the first line in my method GridQueryHiddenColumns. It never gets called. So I added the same delegate to SaveCols, ran again, its never called. Is there something I must set for this event to fire or am I missing the point entirely.
ADAdministrator Syncfusion Team March 26, 2004 10:23 AM
You are correct. QueryHideCols is not currently being fired.
It was included in the origical design, but it turned out to be unuseable in conjunction with required scrollbar management. You just could not dynamically hide columns on demand and still maintain the integrity of the scrollbars as they also would have to change dynamically.
We will mark it as obsolete and eventually remove it from the code. The same is true for QueryHideRows.