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
975
An easy one - ActiveRow = Null
posted

Another easy one I hope.  I've got a grid that continues to display the right-pointing triangle icon in the row selector column after setting the grid's activeRow property to null.

I'm guessing that there must be some other property set on the grid that's preventing me from eliminating the triangle...?

Thanks,  Bill

  • 469350
    Verified Answer
    Offline posted

    Hi Bill,

    By default, thegrid synchronizes it's ActiveRow with the Current row of the DotNet CurrencyManager - which always has a current row.

    So the only way to get the grid to have no ActiveRow is to set SyncWithCurrencyManager to false and then set the ActiveRow to null. 

    An alternative would be to simply hide the RowSelectors.

    Another option would be to hide the RowSelector images by setting ImageAlpha to Transparent on the RowSelectorAppearance. Or using a DrawFilter.