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
245
Cell Click & Scrolling Problem
posted

I have a WinGrid that is on a custom control. Several instances of the control are added to a flow layout panel that has a vertical scrollbar.

My problem is that when I click on a cell in my grid (to add a new row) this causes my flow layout panel to scroll in order, I presume, to show my entire custom control. Unfortunatly it doesn;t do a very good job of this and the bottom of the control gets cut-off even if it was entirely visible beforehand.

I'm sure it is the WinGrid causing this because if I activate any other controls on my custom control it stays exactly where it is.

I have attached an image showing what happens. The upper Window in the image show the initial state and a red circle showing where the user is going to click. The lower Window shows what happens after the click when the control gets auto-scrolled downwards cutting off the bottom of the grid.

Is there any way to stop this? Or is there something I'm doing wrong?

Thanks

Parents Reply Children
No Data