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. Image for the cookie policy date

GridGroupingControl: How to update cell value without NotifyPropertyChanged?

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?

4 Replies

AS Athiram S Syncfusion Team 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


AS Athiram S Syncfusion Team 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


AS Athiram S Syncfusion Team 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



AS Athiram S Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon