Home Forums WinForms controls Xceed Grid for WinForms Icon in the RowSelectorPane

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #12684 |

    I need to place an icon on a row in the RowSelectorPane and have it always be visible. I can get the icon to display, but only if the row is selected. Is there any way to keep the icon visible even when the row is not selected?

    I am currently replacing the RowSelectorPane.ImageList with my own. The image is set for a particular row by calling DataRows[index].RowSelector.ImageIndex = newImageIndex.


    Imported from legacy forums. Posted by MBonafe (had 2487 views)

    Xceed Support
    Post count: 5658

    Hi Mark,

    You best option would be to set the BackgroundImage property of the RowSelector for which you want to force an image. Keep in mind that you will need to set the CurrentImageIndex, EditImageIndex, etc properties to null (or none in the designer) so that the little glyphs are not drawn over your image when the row is selected!

    Your other options would be to create a class that derives from the RowSelector class and override the PaintForeground method to paint your image or handle the Paint event of the RowSelector to draw your image.

    I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 3733 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.