Hi All,
I am using UltraWinGrid 9.2.20092.2058 and need to draw vertical lines over cells.
I put the draw method in the grid_Paint event.
However, when mouse moving over the Grid, the Grid_Paint event occurs and the Grid is redraw.
How can I prevent the Grid redraw when MouseMove ?
Please help me.
Thank you,
Nguyen Huu Chu - VNETSOFTWARE
Hi Hristo,
Thanks for your help. Your solution works fine with me now.
Regards,
Chu
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
You could use DrawFilter to draw vertical line over the cell, instead of using the Paint event, because you could determine the exact element which will be drawn. I have created a small sample to illustrate this approach.
I am not sure that it is possible to prevent firing of Paint event, when mouse is moving over the UltraGrid, because it is firing, when the control needed to be redrawn and our UltraGrid has a lot of events that are based on the appearance, which causes repaint of the control in order to be applied over the UltraGrid correctly.
Please let me know if you have any further questions.