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
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.
Thanks, Danko.
No wonder I couldn't find it. That is slightly less than intuitive.
Thanks, that will sharpen up our presentation layer a bit.