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
1175
How to hide or remove Add Button's label
posted

Hi  

1 - I want to hide or remove the Add Button's label (Add....) from the bottom of the grid

2 - i want to right align the Add button in the bottom of grid. 

3 - i wnat to change its background apperance.

4 - How to capture the event of that Add button? 

5 - i want to raise that event of that Add Button manually how to achieve that?

Regards

Asad Naeem 

  • 469350
    Verified Answer
    Offline posted

    2 - There is no easy way to do this. Maybe you could use a CreationFilter. 

    3 - Is there an AddNewButtonAppearance on the Band?

    4 - There's no event specifically for the button, but the BeforeRowInsert and AfterRowInsert events will fire any time a new row is added. 

    5 - There's no way to "raise that event" since there is no event. But i think you probably mean you just want to call AddNew on the band, which does the same thing as clicking the button. 

    It sounds to me like you would probably be better off turning off the AddNewBox in the grid and just adding a button to your form or on a toolbar that calls AddNew on the grid band. It would save you a lot of space and you would have a lot more control and flexibility.

  • 1175
    posted

    HI

    i found the answer of 1st question:

       // Assign an empty string.            
                this.ultraGrid1.DisplayLayout.AddNewBox.Prompt = "";

     

    Regards

    Asad