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
* Only Text from column no4 now there is just one cell with this text
Test1 Test2 test3
Thanks
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.
Thank you! This is the right direction. Thank you for the sample! I changed some things for me..but it worked. (I Need the case...cell 1 is * and then another cell gets bigger)
Ok, it worked..
BUT..if you take some more rows in the grid the performance is horrible!!! :-( Just take 40 rows in your sample and then write a * in a cell....
Do you know another way?