Hello,
Is there a way to show Text in the grid when there is no data present in the grid? (i.e. Row count = 0 )
Thanks,
Andrew
You could do this with a CreationFilter. You would trap for the BeforeCreateChildElements of the UltraGridUIElement. check the grid.Rows.Count. If it's 0, you would create a new TextUIElement and add it into the grid element and set it's text.
This is actually a pretty simple CreationFilter, but if you have never used CreationFilters, they can be a little daunting at first. I recommend checking out the Infragistics Knowledge Base for articles and sample drawfilters. Also, get the Infragistics UIElementViewer Utility. It's a big help when dealing with DrawFilters and/or CreationFilters.
And if you get stuck, let me know.
Hello Mike,
Thanks for the tip, this worked out perfectly.
One quick question...is there a way to set the Text property of the TextUIElement to bold or Italic? If not, do you know if theres another UIElement I can use?
Thanks again,
Hi Andrew,
What you have to do is derive your own class from TextUIElement and then override the InitAppearance method. You can then modify the appearanceData to change the font or colors or whatever. :)