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
640
Colspan as result of different values in a cell?
posted

Hello,

I have UltraWinGrid with one band and several columns. Now i search for a possibility to hide some columns if in the first column is a Special value (*).

How can I do this?

The Grid Show look like this:

 

Test1 Test2 Test3 Test4

Test1 Test2 Test3 Test4

*        Only Text from column no4 now there is just one cell with this text

Test1 Test2 test3

Thanks

 

Parents
  • 21795
    Offline posted

    Hello Judith,

    Thank you for posting in our forum.

    If I understand you correctly what you need is when a particular cell contains some special value to span that cell over the next neighbor cell to the right. If this is what you need you can achieve such behavior by implementing the IUIElementCreationFilter interface. In your implementation you can set the cell’s UIElement width of the cell that contains special text as big as it is necessary to overlap the next cell. You can also set the width and height of the next cell to zero so it will not be visible. More about IUIElementCreationFilter you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.v15.1~Infragistics.Win.IUIElementCreationFilter.html.

    In the attached sample solution I have implemented this approach. Please check my sample and let me know if this is what you are looking for of if I am missing something.

    Thank you for using Infragistics Controls.

    CAS-164970-G4L1F6.zip
Reply Children