First I'm using the following:
I would like to allow the user to select the type of summary for a column, but the "Sum" is disabled for some reason.
My settings in the UltraWinGrid Designer are as follows:
For some reason when the user clicks on the column to dislplay your "Select Summaries" form and the "Sum" option is disabled. What do I need to set to have this enabled? From the Designer? By the way my program will display the sum total from code! But thats not the way we want this to work.
Also I tried inserting pictures for your benifit, but alas YOUR posting form will not accept any! Whats up with that?
Thanks ahead of time.
Patrick
Hi Mike
I think you mean there is no support in DotNet for formatting an integer...
But anyway, the DataType is string but we were wanting to know if we could get into the behind-the-scenes code that is called when clicking the Sigma on the UltraGrid - and tailor it.
thanks
Hi Simon,
There is no support in the DotNet framework for formatting a string. So if the DataType of your column is a string, this will be very difficult.
What's the actual DataType of the grid column?
Hi
Is there are way of intercepting this rule in code ?
I am displaying a list of time balances (hours) in the format 37:30, 40:00, obviously we need to display them as strings to format them this way.
It would be good to see the sum and average, even if it means converting these to minutes (integers), calculate the Sum and Average and reformat these as SUM = HH:MM, AVERAGE = HH:MM.
Is this possible ?
Simon G
Hello Patrick,
Have you been able to check what is the DataType of the column in DesignTime? By default the DataType of the added columns in design time is System.String, and the "Sum" and "Avarage" options will be disabled.
Please let us know if you have any further questions.
Hi Patrick,
The enabled state of the summary types on the default list are determined by the DataType of the column. So what is the DataType on the column where you are trying to apply a summary?