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

Can I refresh centrain rows on GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

50639 Oct 16,2006 02:05 PM UTC Oct 17,2006 12:37 PM UTC WinForms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 16, 2006 02:05 PM UTC

Hi, I have a gridgroupingcontrol which is bound to a datasource. A sperate thread will change the value of the underline datasource, and my QueryCellStyleInfo event displays different backcolor for different rows depending on the value of the underlying data.

When the second thread changes the value, I call gridgroupingcontrol1.Refresh() to refresh the backcolor on the grid.

My question is whether there is a more efficient way to refresh the grid. Can I refresh just the rows that the second thread has changed.

Thanks,

FS

Administrator [Syncfusion]
Replied On October 17, 2006 04:06 AM UTC

Hi Frankie,

Use the RefreshRange/InvalidateRange method to refresh the specified range in a GridTableControl. Below is a code snippet

//For main table.
this.grid.TableControl.RefreshRange(GridRangeInfo.Row(rowIndex));

//For particular table.
this.grid.GetTableControl("TableName").RefreshRange(GridRangeInfo.Row(rowIndex));

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On October 17, 2006 12:37 PM UTC

great. thanks.

>Hi Frankie,

Use the RefreshRange/InvalidateRange method to refresh the specified range in a GridTableControl. Below is a code snippet

//For main table.
this.grid.TableControl.RefreshRange(GridRangeInfo.Row(rowIndex));

//For particular table.
this.grid.GetTableControl("TableName").RefreshRange(GridRangeInfo.Row(rowIndex));

Best Regards,
Haneef

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

;