Hi all,
I am developing a Windows Forms Application. UltraWinGrid plays a major role in my application. I am using the latest version Of UltraWinGrid control(v9.2)..My question is that is it possible to add a cell text in a summary row which is not dependent on any of the columns present in the grid. For eg; I can have three columns namely col1,col2,col3......I can have three summary values for these three columns. But apart from that I need to add another cell in the summary row. How could we achieve that? Also I am having a progressbar column which shows up the percentage of value used in each row. So, i need to take the average of that particular column and bring that value in a progressbar control itself in the summary row. So, is there any way to add a control in the summary row?
raghuramanv said:I am developing a Windows Forms Application. UltraWinGrid plays a major role in my application. I am using the latest version Of UltraWinGrid control(v9.2)..My question is that is it possible to add a cell text in a summary row which is not dependent on any of the columns present in the grid. For eg; I can have three columns namely col1,col2,col3......I can have three summary values for these three columns. But apart from that I need to add another cell in the summary row. How could we achieve that?
Sure, there are a couple of ways you do this. What I would do is use the Custom summary type. You will need to create a class which implements ICustomSummaryCalculator and simply return a value.
Another way to do it would be to create a real summary that does something simple, like say a Count summary. Then set the DisplayFormat on it to a literal string that does not include the actual count.
raghuramanv said:Also I am having a progressbar column which shows up the percentage of value used in each row. So, i need to take the average of that particular column and bring that value in a progressbar control itself in the summary row. So, is there any way to add a control in the summary row?
There's no easy way to do this. You could use a Custom summary or a formula summary to calculate the percentage.But displaying it as a ProgressBar inside the summary row would be tricky. You could, of course, use a ProgressBar outside the grid.
It might be possible to get the ProgressBar inside SummaryRow using a CreationFilter. But if you are not familiar with CreationFilters, this would be a pretty tough one to start with.