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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl: How to update cell value without NotifyPropertyChanged?

Thread ID:

Created:

Updated:

Platform:

Replies:

106841 Jan 28,2013 07:01 PM UTC Jan 30,2013 07:20 AM UTC WinForms 4
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On January 28, 2013 07:01 PM UTC

I have a BindingList<MyClass> bound to a gridGroupingControl.

I need to update just one of its columns VERY frequently and raising NotifyPropertyChanged is creating performance problems.

1- Is there other way to do this?

2- Also, I have noticed that if I don't raise this event, my values in the grid are set to default ("0"), but when I click a cell containing "0", it suddenly changes to the actual value, for example "15000". Where does this value come from if I didn't raised the NotifyPropertyChanged event?

Athiram S [Syncfusion]
Replied On January 30, 2013 06:53 AM UTC

Hi Cristian,

Thanks for your interest in Syncfusion Products.

For updating a particular column, you can make use of the Real Time Sample in the dashboard.

Here is the link of sample:
<Installed Location of EssentialStudio>\<Version>\Windows\Grid.Grouping.Windows\Samples\2.0\Performance\Real-Time Update Demo\

This enables you to update the column frequently.

Please let me know if you have any concerns.

Regards,
Athiram S

Athiram S [Syncfusion]
Replied On January 30, 2013 07:15 AM UTC

Hi Sergio,

Thanks for your update.

You can make use of "QueryCellInfo" event to color the summary row.

In order to color the cells based on the condition column>value, you can make use of the following code in event:

if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)//e.TableCellIdentity.TableCellType == Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellType.AnySummaryCell)
            {
                if(e.TableCellIdentity.ColIndex>2)
               
                grid.Appearance.AnyCell.BackColor = Color.Black;
                else
              
                grid.Appearance.AnyCell.BackColor = Color.Green;
            }

Please let me know if you have  any concerns.

Regards,
Athiram S

Athiram S [Syncfusion]
Replied On January 30, 2013 07:18 AM UTC

Hi Sergio,

Thanks for your update.

You can make use of "QueryCellInfo" event to color the summary row.

In order to color the cells based on the condition column>value, you can make use of the following code in event:

if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)//e.TableCellIdentity.TableCellType == Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellType.AnySummaryCell)
            {
                if(e.TableCellIdentity.ColIndex>2)
               
                grid.Appearance.AnyCell.BackColor = Color.Black;
                else
              
                grid.Appearance.AnyCell.BackColor = Color.Green;
            }

Please let me know if you have  any concerns.

Regards,
Athiram S


Athiram S [Syncfusion]
Replied On January 30, 2013 07:20 AM UTC

Hi Sergio,

I regret for the inconvenience.

Please ignore my previous two posts, it was not related to you.

Please let me know if you have any concerns.

Regards,
Athiram S

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

;