Hello,
I am having trouble with two buttons I inserted in a WinGrid. I added the two buttons side by side and they show correctly when I run the program but if i scroll to the right to see more columns and then scroll back to the left, the buttons overlap.
I would like some help to resolve this. Please see the image below:
Thank you.
Thank you, Georgi.
This helped a lot and we were able to solve our problem now.
Cheers.
Hello RichSee,
Thanks for attached sample. I saw your issue, but the mentioned behavior is expected because your are using :
newButton.Rect =new Rectangle(33, 25, 70, 26); instead of my code:
newButton.Rect = new Rectangle(El.Rect.X +El.Rect.Width - 20, El.Rect.Y, 18, 18);
By this way you will get two different issues:
1. when you scroll your grid, the button will keep always his position
2. you will get issue with redraws of your control.
Please take a look at the attached video for more details and use my suggestion from my sample. Let me know if you have any questions.
Regards
Hi Georgi,
I looked at the sample you sent using the CreationFilter and modified it as little as I could by just adding one button. After adding the one button I got the same behavior I get in my project. Please take a look at the sample code that was modified.
Could you please take a look at the new sample with two buttons. Let me know if you have any questions.
I have taken a look at the code sample you provided. Sorry for the late reply.
I was unable to reproduce the scenario using our code but it is very similar to the code you provided.
I will provide code that we are using to create the two buttons in one cell: