Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1310
ultrawingrid checkbox on header
posted

I have downloaded the sample code to place a checkbox in the column header. 

When the program gets to the Sub AfterCreateChildElements and runs the line  aColHeader = CType(parent, HeaderUIElement).Header, I get this error message :

Unable to cast object of type 'Infragistics.Win.UltraWinGrid.BandHeader' to type 'Infragistics.Win.UltraWinGrid.ColumnHeader'.

Is there something in my grid that causes this or does it need another test for BandHeader here?