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.
Unfortunately, activation email could not send to your email. Please try again.

Can I refresh centrain rows on GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

50639 Oct 16,2006 10:05 AM Oct 17,2006 08:37 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 16, 2006 10:05 AM

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 12:06 AM

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 08:37 AM

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.

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.

;