I am having an issue with a panel that contains some controls on the top of the panel and a UltraWinGrid on the bottom. These controls are all sitting inside a SplitterPanel.
It seems to be behaving differently depending on the container control these controls are in.
Problem: When the Autoscroll property on the panel is set to true and you drag the form up...the scrollbar only shows up once it hits the controls above the grid. So once you have the vertical scrollbar you can only scroll to the bottom of the "other" controls...so you may not know that the grid exists below...unless you resize the form back down to reveal the grid.
The grid is anchored to the bottom of the container (the panel).
How can one have the grid included as part of the autoscroll on the panel?
Hello Jim,
Thank you for posting to our forum.
In order to understand the issue may I know if you are using winPanel and winSpliter the infragistics controls or the Microsoft one.
If you are using infragistics controls than can you provide me a small isolated sample application with the steps to reproduce the issue.
Look forward to hear you back.
Current test app I have has:
Windows.Forms.SplitterPanel (Dock = Fill)
Panel1 contains:
- Windows.Forms.Groupbox
- GroupBox contains a windows.Forms.Panel (Dock = Fill, AutoScroll=True)
- Panel contains an UltraDateTimeEditor and a UltraGrid below it
Panel2 (AutoScroll=True)
- Just contains a UltraDateTimeEditor and a UltraGrid
How can I provide my sample app?
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I created a sample added controls winSpliter , winPanel ,UltraWinGrid at the bottom and other controls(GroupBox and UltraDateTimeEditor ) at the top .I set Autoscroll property of the panel to true (as demonstrated in the sample) when I run the sample both the scrollbar horizontal and vertical are working fine , I can scroll to the bottom and and can see the grid.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, then the change in behavior is due to differences in your environment from mine and these differences can be anything from operating system version to the specific version of the Infragistics DLL versions used. My test was performed using version 17.2.20172.2005. Please provide more details about your machine and version of the assemblies that you are referencing so that I can modify the environment that I am testing in to match yours.
If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing. This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.
Please let me know if I can provide any further assistance.
WinGridPannel.zip
Thank you for providing the sample application.
I looked into the sample and noticed that you are using Microsoft SplitContainer, GroupBox, Paneland infragistics UltraDateTimeEditor1, UltraGrid1, Groupbox control.
Because the grid is in Microsoft panel the issue is with Microsoft control I believe.
I would recommend you to try using infragistics winSpliter , winPanel control and check if it resolve the issue.
Attached is my sample app. NonSuControlsSplitterGridComponents.zip