DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) Method

Definition

Updates the value of a specified row with the given text.

C#
protected internal virtual void UpdateUI(System.Windows.Forms.CurrencyManager source, int rowNum, string instantText);
C#
protected internal virtual void UpdateUI(System.Windows.Forms.CurrencyManager source, int rowNum, string displayText);

Parameters

source
CurrencyManager

The CurrencyManager associated with the DataGridColumnStyle.

rowNum
Int32

The row to update.

instantTextdisplayText
String

The new value.

Examples

The following code example uses the UpdateUI to set a new value.

C#
private void UpdateGridUI() {
   // Get the MyDataGridColumnStyle to update.
   // MyDataGridColumnStyle is a class derived from DataGridColumnStyle.
   MyDataGridColumnStyle myGridColumn = 
   (MyDataGridColumnStyle)dataGrid1.TableStyles[0].GridColumnStyles["CompanyName"];
   // Call UpdateUI.
   myGridColumn.UpdateUI(myCurrencyManager, 10, "my new value");
}

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 10