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
100
Multiple UltraGrid(s) on form AND DrawElement(), GetPhasesToFilder
posted

I have used code from one of your WinForm UltraGrid examples, which uses DrawElement and GetPhasesToFilter functions.

However, I have a form using the UltraTabControl. Each tab contains it's own UltraGrid. In your code for DrawFilter, you reference the specific UltraGrid on the form, ie: UltraGrid1.

I need distinct DrawElement and GetPhasesToFilter functions.

How to I accomplish this.

Thanks,

Michael Jackson

Parents
No Data
Reply
  • 5118
    posted

    The filters are still applied to a specific grid and not every grid that is present on the form.  So for the filter to be applied to MyGrid, you need to set MyGrid.DrawFilter = New MyFilter(); and the DrawFilter will only be applied to the specific Instance of MyGrid that I set this property.  If I have another instance on the form it will not be applied to other one as I did not set the DrawFilter property of the other instance. 

Children
No Data