Infragistics(R) NetAdvantage(R) Windows Forms
RefreshRow Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : RefreshRow Enumeration

Used to specify the actions for the Refresh method.


Visual Basic (Declaration) 
Public Enum RefreshRow 
   Inherits System.Enum
public enum RefreshRow : System.Enum 


FireInitializeRow Re-Initialize. Causes the InitializeRow event to occur.
RefreshDisplay Display. Only causes the display to be repainted.
ReloadData Reload rows.


Following code refreshes the first row in the UltraGrid and causes InitializeRow to be fired for it as well. Refresh method can be used to force the UltraGrid to repaint a row or fire InitializeRow event for the row.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button74_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button74.Click

      ' Get the first visible row.
      Dim row As UltraGridRow = Me.UltraGrid1.Rows(0)

      ' Repaint the row.

      ' Fire InitializeRow on the row.

  End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button74_Click(object sender, System.EventArgs e)

	// Get the first visible row.
	UltraGridRow row = this.ultraGrid1.Rows[0];

	// Repaint the row.
	row.Refresh( RefreshRow.RefreshDisplay );

	// Fire InitializeRow on the row.
	row.Refresh( RefreshRow.FireInitializeRow );


See Also