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
520
It would be nice if the add record buttons did not say 'table'
posted

I am relatively new to Infragistics tools and so far it has been an enjoyable journey.

I inherited a project skeleton that was started using a lot of Grids and the other day my QA guy comes up and says, "Can you change the caption on the 'add new record' button to say something beside 'Table'?"

Like the innocent NOOB I still am, with Infragistics, I said, "Sure, No prob."

Two days later, though the entire project is wrapping up, I still haven't found out how to do this. I am using late binding on the tables and so I haven't used the 'custom properties page' to set much but just can't find where this setting resides.

I am sure it is simple... at least, I hope it is...

Thanks,

 

Mitch

Parents
No Data
Reply
  • 20872
    Verified Answer
    Offline posted

    Hello Mitch,

    By default the button is named after the Band caption's property, so if your first band is called "Table" than the band would have a key "Table" and if you have not set the caption of your band yourself than the caption would be the same = "Table".  You could change the caption of your band and this would change the text of the button inside the Add new box respectively.

    You could use the following line of code to do so:

     ultraGrid1.DisplayLayout.Bands[0].Header.Caption = "New Caption"; 

    Please let me know if you have other questions with this matter.

Children