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
1210
How to hide editor buttons of combos when it is used as EditorControl in grids
posted

Hi,
 I am using ultra combo as a Editor control in my ultra grid. Befor that I added two editor buttons in the combo.Now I want to show this combo Buttons in my column on some condition only. But i am not able to hide editor buttons of combo when I am using it as a Editor control of UltraGridColumn. Is there any way to do this?

Parents
  • 37774
    posted

    When you assign a control to be used as the editor in the column, a clone is created so hiding the buttons on the control won't actually do anything if you hide them after you assign the editor.  Instead, you could cast the Editor of the column to an EditorWithCombo and hide it from there, such as:

     ((EditorWithCombo)this.ultraGrid1.DisplayLayout.Bands[0].Columns[0].Editor).ButtonsRight[0].Visible = false;

    -Matt

Reply Children
No Data