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
420
WinGrid NullText
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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. 

Children