Hello ,
You could use InitializeRow event of UltraGrid in order to hide cells from SP1 and SP2 columns, and then to use MouseEnterElelemnt and MouseLeaveElelemnt events in order to display/hide those cells if the row meets some criteria. Please see attached sample.
Please let me know if you have any further questions.
Hristo, I had to copy your code into another solution to make it run.
I may be missing something but I do not see the behavior that you were trying to demostrate. Here are two screen shot. In one case the focus is on band 2 and in the second case the focus is on band 3 (the one with the special cells). In both case, the UI does not look any different.
See here http://i46.tinypic.com/2ihv8uv.png
Hello Hristo,
Thank you very much for the sample. It is very helpful to have a working sample. And thanks for thinking about getting the solution in VS2010. That helped.
Have a look at the screenshot are from a Yahoo Mail inbox. For my business application, there is a key component which is expressed a hierarchy using an UltrGrid. For that component, I would like to emulate these behavior
With the example you sent me, I know how I can make icon change based on the mouse click but I would the behavior to be like Behavior 3. I do not want to see the cell highlighted as I click on the icon.
Your DrawFilter implementation is terrific. As I implemented it I realized one shortcoming in the way I defined my requirements. I realized users won't know there is a checkbox/delete icon until they hover right over that cell. I myself has a hard time figuring out where the checkbox was. That made me realize that Behavior 1 (see above) is really needed. The icon is lightened (instead of made to disappear) and when the mouse is hovering over the row the icons brighten. That way the user notice icon (checkbox/delete button)exists but being light it does not make the UI busy. What would it take to get that behavior.
Let me know on Behavior 1 and 3.
Thanks a lot! Really find your support incredibly helpful.
Thank you for the provided screenshot. I am not sure if your images are in separate columns and the cell borders are removed or they are into the cell that display text. However you could achieve your goal using HotTrakRowAppearnce and RowApperance in order to manage the appearance of the row based on if they are hovered or not. Also if the scenario is more custom you could apply different appearance on the row or cell object. Also I suggest you to review the following section from our online documentation regarding stilling of UltraGrid:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/WinGrid_Styling_WinGrid.html
Also I have modified my sample with my view point of how you could achieve this. Also in this sample I am reusing appearance regarding our performance guide:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.2/CLR4.0/html/WinGrid_Performance_Guide.html
Please feel free to modify my sample based on your custom needs.
Hristo,
Many thanks for this excellent sample. I had not realized how useful UseAlphaLevel can be.
- I was able to generally reverse engineer your example but I could not figure out how you made the certain columns (ones with A0, B0, C1, B1, etc) to stay unaffected by AlphaLevel.
- When I click on the image, any way to keep the cell from being selected (see the blue box below). In my previous note, I had mentioned about the three behaviors I am seeking. Behavior #3 is to make only the icon change without highlighting the cell (i.e. without making that blue box show in the example below)
Hello,
I am using DrawFilter in order to skip transparent drawing of the cells that contains text. Regarding the blue cell, you just could manage SelectedCellAppearance ant to set its back color to transparent.
I hope that this will helps you.
Thanks for the clarification on DrawFilter.
On the SelectedCellAppearance, I tried it and got close. It still show the box as you can see in the screenshot (notice the "Wait icon on third row from top)
Compare that with how it shows in these screenshot from a popular mail software. There is no box around the star after I clicked on it. Any thoughts on how I can achieve that behavior?
Thanks a lot for your support.
Thank you for your feedback. Please feel free to contact with us, or to start new Forum thread or to open a support ticket in our system if you need any further assistance with Infragistics Components.
Thank you for using Infragistics Components.
For the last several days, I have not gotten around to going back to my prototype for the effort I had been seeking help. I am going to have to need more help for sure.
Thanks for the followup Hristo! Your help so far has been invaluable. You will be hearing from me.
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this matter?
Have modified the sample, I have removed SelectedCellApperance and instead I have set SelectedTypeCell to None.