Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
12781 | Apr 12,2004 06:08 PM UTC | Apr 12,2004 07:14 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
this.gridControl1.BeginUpdate();
this.gridControl1[2,1].Text = "aaaaa";
this.gridControl1[3,1].Text = "aaaaa";
this.gridControl1[4,1].Text = "aaaaa";
this.gridControl1[5,1].Text = "aaaaa";
this.gridControl1.EndUpdate();
then you will not see any changes until those cells are forced to repaint (maybe by dragging the form off/on the display, or by explicitly calling gridControl1.Refresh or RefreshRange.
But if you use this code,
this.gridControl1.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.Invalidate);
this.gridControl1[2,1].Text = "aaaaa";
this.gridControl1[3,1].Text = "aaaaa";
this.gridControl1[4,1].Text = "aaaaa";
this.gridControl1[5,1].Text = "aaaaa";
this.gridControl1.EndUpdate(true);
the cells get redrawn when the EndUpdate is called. The Invalidate option means that regions are marked invalid instead of being redrawn. Then on the EndUpdate call, a call to Control.Update is made that forces the paint to take place. 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.
This page will automatically be redirected to the sign-in page in 10 seconds.