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

Column refresh

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!


2 Replies

NR Nirmal Raja Syncfusion Team 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



S_ Stephane _ 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!



Loader.
Live Chat Icon For mobile
Up arrow icon