Hi
Can i get the width of certain column of an ultrapivot grid? Or the width of a certain cell?
Are those widths resizeable?
Thanks!
Hello,
Thank you for posting in our forums.
The UltraPivotGrid has a columns collection and you can get the widths of each of the columns from there.
You can also set this width to resize it programmatically, or set the AllowColumnResize property to enable/disable letting the user resize it through the UI.
If you need further assistance with this, please let me know.
Thanks!The goal was to get the point in red circle in the file attached. Do you know how can i get it?
Thanks!!
I need to set labels refered to that point. I was thinking on the width of the Rows, which could be N, and the height of Filter and Column header.
Is it another easier way ?
Thanks for the reply.
I would solve the problem If I could get the width of the FilterDropArea or the RowDropArea after loading the data to the ultrapivot grid.Any way of getting them?
While we do not expose any methods to get the position of what you are looking for, you may be able to accomplish what you need by creating a Creation Filter.
Please see our documentation for more information on this.
https://es.infragistics.com/help/winforms/win-creation-filter
So there is no fast way to get the width and the height of a cell?
Currently, the only available method to achieve this is to use the creation filter. Having direct access to the measurements would be a new product idea.
You can suggest new product ideas for future versions (or vote for existing ones) at https://es.infragistics.com/community/ideas.
If you need anything else, please let us know.
Excellent. Glad you finally got it working. :)
Hi Mike!
Looks that the creation filter you send me works!
Thanks for the help! And again, for your patience.
No problem. Let me know how it goes.
Hi again and sorry for the time jumps. I am travelling a lot.
Mike Saltzman said:I thought you were trying to position a label or some other control on top of the UltraPivotGrid, in which case, the CreationFilter would actually work. The code I have here will fire any time the RowDropAreaUIElement gets positioned, so you could use that position to place some other control if that's what you want.
Yes, that is what we want. I haven't had time for trying again the creation filter. I'll try it this week and tell you if it works.
Thanks for the help. Thanks for the patience.
As I was trying to explain initially... in order to help you with this, I really need to know what you are trying to do with this information. Why do you want the width of this element? What are you trying to use it for?
I thought you were trying to position a label or some other control on top of the UltraPivotGrid, in which case, the CreationFilter would actually work. The code I have here will fire any time the RowDropAreaUIElement gets positioned, so you could use that position to place some other control if that's what you want.
If you want to use the Paint event, or after-draw, then you could could use a DrawFilter or derive a control from the PivotGrid and then override OnPaint and then do whatever you want to do after you call the base implementation.
But there are really too many possibilities here for me to help you intelligently without know what you are trying to do.