How to remove the gray area around my display in the Grid, I have used fill but did not work.
Hello Bouzid,
Thank you for reaching out today. Would it be possible for you to send us a mockup and/or screenshot of your requirements? The Windows Forms UltraWinGrid, by default, does not have any gray area around it's bound other than possibly the form it's sitting on. Can you please clarify this?
Thanks, and let me know if you have any additional questions.
Attached is a pic of the the gray area I want to remove it.
Hi,
Thanks. I attached a sample. Please modify it accordingly so it reproduces this behavior and re-upload it when your finished. Perhaps a style library that's been imported to your application is making it appear this way. But it's hard to make that distinction.
Let me know if you have any questions.
I want when I maximize the window form I want it to resize to the correct size where the left half of the grid sets to a certain size where the gray area is filled and the right side of the grid sets to a size that can take some of the grey.
It appears that your UltraGrid is sitting within an inbox SplitContainer control. Is this correct? I tried this and found no way of resizing either panels. I recommend seeking help on this at MSDN.com
Your probably better off using a combination of the UltraPanel and UltraSplitter controls to properly size the panels appropriately.
Let me know if you have any questions regarding this matter.
If you're dragging the edge of the form to resize it or changing the form size at runtime and it's not maximizing then there is some sort of issue going on. I'll need a sample to debug that behavior if our controls are being used. If this is happening without our controls then I recommend contacting Microsoft at msdn.com
Hi Michael,
What event I should use for the maximize, I have added this code but the form is not responding. I am using the Resize event.
if (this.WindowState == FormWindowState.Normal)
WindowState = FormWindowState.Maximized;
I am glad I directed you towards a solution, but I'll need a complete sample to further troubleshoot any issues you are having.
I have found that when the form loads it loads to the desired size, but when you maximize it the UltraSplitter remains in its place, so if I can make the UltraSplitter interactive when I maximize I will achieve the solution. I have added an UltraSplitter but I am not sure what to do afterwards ??
What you have attached is completely fine, but once you maximize everything is blew up.
Hi Bouzid,
I incorporated your designer file in a new project and exlcluded the RepeatCtrl and I was unable to see the gray area. It seems both grids are fit to size the available space.
I attached an image of what I see.