Hi,I have to save space on my grid, so I used only one line at top, where the user can insert a new row into the WinGrid.It's not so clear for my users, where to start, so I write in that text box :"Click here to add a new member"If the user clicks on the text box I hide that text box, insert a new row and set the focus to that new row.
Is there a easier way? Atm. I have to do many things by hand. The position of the text box if the user change the size of the window. Set the text box to Visible, if the user has finished/cancled the "Add new" operation....I try the brand new "Custom Empty Message" but it's not what I want to do. Is there a ballon help or such thing that I don't found jet?
Kind Regard
Ralf
forget to say: Yes there is a Override property: "TemplateAddRowPrompt" but I can enter only a short text in my first column. So I used that extra Text box in front.
Better: But only with my text box.
Hello,
You could use TempleateAddRow and to use CreationFilter in order to modify it a little, in order to display this TempleateAddRow as EmptyRowMessage. I have implemented the approach with CreationFilter (please see the implementation of IUIElementCreationFilter, AfterCreateChildElements method ). Please run the sample and let me know if this is what you are looking for.
More information about CreationFilter you could find on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/Win_Creation_Filter.html
Please let me know if you have any further questions
Thanx for your ideas. I will try to change it in my next version.
Thank you for your feedback.
Please let me know if you have any further questions.