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

Column refresh

Thread ID:

Created:

Updated:

Platform:

Replies:

75701 Aug 6,2008 08:15 PM UTC Aug 7,2008 01:27 PM UTC WinForms 2
loading
Tags: GridControl
Stephane _
Asked On August 6, 2008 08:15 PM UTC

Hi,

When a specific event is handle in my app, only one column in a grid (GridControl) needs to be refreshed.

At the moment I'm using Me.Refresh() to refresh the full grid but it's just a bit too slow.

I do handle the QueryCellInfo and I'm aware that this might need optimization. But I was wondering if it's possible to refresh only a single column in a grid instead of the full grid.

Thanks!


Nirmal Raja [Syncfusion]
Replied On August 7, 2008 05:19 AM UTC

Hi Stephane,

Thank you for your interest in Syncfusion product.

The GridControl has a method called RefreshRange() which is used to refresh a range of cell.
The range should be given using GridRangeInfo class and the colindex which has to be refreshed has to be given in the method col() of GridRangeInfo.

Please refer the below code snippet for detail:
int colindex = this.gridControl1.CurrentCell.ColIndex;
this.gridControl1.RefreshRange(GridRangeInfo.Col(colindex));

Let me know if you have any queries.

Regards,
Nirmal


Stephane _
Replied On August 7, 2008 01:27 PM UTC

Can’t believe I didn’t see it, looks obvious this way.

It’s working great and the refresh is pretty fast.

Thanks!



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

;