Hello,
I am wondering if it is possible to display a message in overlay in an UltraWinGrid, for example to show a message when there is no items on the list, like in some software like Outlook shown below.
I have tried the NullText property but this didn't work.
I have managed to implement this by adding a label to the control property and centering manually, but I wonder if there is another way?
If there is not, could this be considered as a feature request in a next version?
In the meantime, in my current implementation, I also have some problems to find the height of the GroupBy box to position the label correctly. Most of the time I have the GroupBy box turned off so I've set it to 0 but it is not really ideal.
Thank you
Hi,
The best way to implement something like this would be to use a CreationFilter. I posted one here that does something similar.
Empty grid message - Infragistics Forums
Or, you could wait for NetAdvantage 2012 Volume 1 which is due to be release shortly.
Thanks a lot.
It works fine.
I wanted to change the color to set the text to SystemColors.GrayText, but TextUIElement does not seem to have any way to customize either the back or forecolor.
You imply there will be an easier way to get this done in the next release? Will this support changing the text appearance as well?
Thanks again.
Hi
To change the text color, what you would have to do is derive a class from TextUIElement and override the InitAppearance method. Then you can set appearanceData.ForeColor to whatever you want.
Kharlos said:You imply there will be an easier way to get this done in the next release? Will this support changing the text appearance as well?
Of course. :)