Version

Refresh Method (UltraGridCell)

Refreshes the row cache or the display, depending on the value of the Action parameter.
Syntax
'Declaration
 
Public Sub Refresh() 
public void Refresh()
Remarks

Generally, painting a control is handled automatically while no events are occurring. However, there may be situations where you want the form or control updated immediately, for example, after some external event has caused a change to the form. In such a case, you would use the Refresh method.

The Refresh method can also be used to ensure that the user is viewing the latest copy of the data from the record source.

Example
Following code shows how to repaint a cell by calling Refresh method on the cell.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button102_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button102.Click

      ' Refresh method redraws the cell. It does not reposition the child elements though.

      Dim cell As UltraGridCell = Me.UltraGrid1.Rows(0).Cells(0)

      ' Call Refresh to redraw the cell.
      cell.Refresh()

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button102_Click(object sender, System.EventArgs e)
{

	// Refresh method redraws the cell. It does not reposition the child elements though.

	UltraGridCell cell = this.ultraGrid1.Rows[0].Cells[0];

	// Call Refresh to redraw the cell.
	cell.Refresh( );

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also