I would like to allow a user to click an ultraGrid at runtime and be able to see the selection handles (white dots) and re-size the control like we can in the visual designer. Is this possible?
If you want your users to be able to resize controls at run-time, then you could use the inbox Splitter control, the UltraSplitter, or the SplitPanel.
Thanks, I will try the idea of the splitter.
Hi,
I just wanted to know if you were able to solve your issue based on Mike's suggestions or you still need help? Just let me know.
Thank you.
Thanks for your follow-up.
I tried the splitter setting the grid in one panel with dock fill, and that worked to some extent, but I didn't like the UI experience. It didn't seem like a pattern that end-users would be used to. What I ended up doing: Set the grid's AutoFitStyle to None, then subscribed to AfterColPosChanged. This let the user resize the last column of the grid, then I accumulated the total width of each visible column in the grid and resized the grid object to match.
In the past, I have used other controls that had a "Selectable" property that would allow a mouse-click on the control to put selection handles on the control. (Just like what visual studio does for us) This works great for applications where you want to let the end-users do screen-layouts at runtime. IMO this would be a nice enhancement for the base class of the Infragistics controls.
I just wanted to know if you were able to solve your issue based on suggestions that we provided to you or you still need help? Just let me know.
Thanks for the suggestions and sample. I do not need any additional help.
I did post an enhancement request that suggests a "selectable" property on the controls that would allow for selection handles to appear on click.