Hi,
I would like to suppress the triangular row selector icon. However if Override.RowSelectors is set to False then errorprovider icons will not appear. It looks like the errorprovider icon is contained within the rowselector column.
I have a workaround which is to set Override.RowSelectorAppearance.Image to a little 1 x 1 pixel (effectively null) image jpeg.
Is there a better way to do this?
Thanks,
Bill
Hi Bill,
What version of the grid are you using? We added new properties for these images in NetAdvantage 2009 Vol. 2 so you can set the image to null.
Or, in any version, instead of specifying a small image, you could make the image hidden like so:
Override.RowSelectorAppearance.ImageAlpha = Alpha.Transparent;
Hi Mike,
I tried it but the errorprovider icon becomes invisible also. I also tried setting it to Alpha.UseAlphaLevel and RowSelectorAppearance.AlphaLevel = 55 and got translucent row selector and errorprovider icons. It appears that the errorprovider icon is embedded within the rowselector column.
We are using the 2007 version of the grid.
In the latest version of the grid, we added new properties for the row selector images, so you can set them individually to null. But you would need to upgrade in order to get that functionality.
If the Alpha settings affect the error icons, too, then maybe you can override that setting by setting the ImageAlpha to opaque on the DataErrorAppearance.
If that doesn't work, the only other option would be to use a DrawFilter or CreationFilter to remove the RowSelector images.