We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC: Group Level Data

Thread ID:

Created:

Updated:

Platform:

Replies:

70959 Jan 10,2008 01:56 AM UTC Jan 17,2008 04:39 AM UTC WinForms 2
loading
Tags: Grouping
Patrick Cheng
Asked On January 10, 2008 01:56 AM UTC

Hi,

I have a GGC which groups a set of securities based on the underlying security. What I want to accomplish is to show some live data of the underlying security in the grouped row. I handle this now by setting summary row and columns and then populating the values through QueryCellStyleInfo event. This is shown in the attached image. However, there are performance issues with this approach since that I populate the values from data stored in a hashtable. When I need to update the cells, it needs to be through the QueryCellStyleInfo event, which I access by calling a Refresh() on the grid.

So my question is, is there a better way to approach this? Or, if there is a way to access the Summary cells programmatically so that I can treat it in the same way as updating other record cells. Your help is much appreciated. Thanks



gird.zip

Patrick Cheng
Replied On January 16, 2008 03:46 AM UTC

HI,

Any update on this? Thanks!


Jeba S [Syncfusion]
Replied On January 17, 2008 04:39 AM UTC

Hi Patrick,

Sorry for the delay in responding.

By default, the summaries will be refreshed as you leave the row. But if you want the summaries to be updated as you leave the cell then, you should handle the CurrentRecordContextChange event and you can Invalidate the summary. Below is the code snippets:

private void gridGroupingControl1_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
{
if(e.Action == CurrentRecordAction.CurrentFieldChanged)
{
this.gridGroupingControl1.CurrencyManager.EndCurrentEdit();
this.gridGroupingControl1.Table.InvalidateSummary();
}
}


Please refer the below KB article for more details:
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=343

Kindly let us know if you need any further assistance.

Best Regards,
Jeba




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;