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
15
Hide RowSelectors permanently
posted

I have to hide rowselectors in ultragrid. 

In InitializeLayout i have:

ug.DisplayLayout.Override.RowSelectors = False
ug.DisplayLayout.Bands(0).Override.RowSelectors = False

It doesnt work. Even when its only statments there.

I used UltragridDesigner in Features i chose rowSelector to hide.

It doent work. They still there.

Also i tried reset Layout.

Same effect.

Parents
No Data
Reply
  • 469350
    Offline posted

    A few things to check: 
    1) Is this code actually getting hit? Maybe the event is not hooked up and the code is not getting executed. 
    2) If this code is getting hit, then the problem is almost-certainly that some other code in your application is stepping on it after this code executes. 

    Are you calling grid.DisplayLayout.Load (or LoadFromXml)?
    Are you loading a Preset? 

    Try putting a button on the form and check the actual value of ug.DisplayLayout.Override.RowSelectors at run-time and make sure it's still set to False. I'd be shocked if it was. 

Children
No Data