DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) Método

Definição

Atualiza o valor de uma linha especificada com o texto especificado.Updates the value of a specified row with the given text.

protected public:
 virtual void UpdateUI(System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::String ^ instantText);
protected internal virtual void UpdateUI (System.Windows.Forms.CurrencyManager source, int rowNum, string instantText);
abstract member UpdateUI : System.Windows.Forms.CurrencyManager * int * string -> unit
override this.UpdateUI : System.Windows.Forms.CurrencyManager * int * string -> unit
Protected Friend Overridable Sub UpdateUI (source As CurrencyManager, rowNum As Integer, instantText As String)

Parâmetros

rowNum
Int32

A linha a ser atualizada.The row to update.

displayText
String

O novo valor.The new value.

Exemplos

O exemplo de código a seguir UpdateUI usa o para definir um novo valor.The following code example uses the UpdateUI to set a new value.

void UpdateGridUI()
{
   
   // Get the MyDataGridColumnStyle to update.
   // MyDataGridColumnStyle is a class derived from DataGridColumnStyle.
   MyDataGridColumnStyle^ myGridColumn = dynamic_cast<MyDataGridColumnStyle^>(dataGrid1->TableStyles[ 0 ]->GridColumnStyles[ "CompanyName" ]);
   
   // Call UpdateUI.
   myGridColumn->UpdateUI( myCurrencyManager, 10, "my new value" );
}
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");
}       
Private Sub UpdateGridUI()
   ' Get the MyDataGridColumnStyle to update.
   ' MyDataGridColumnStyle is a class derived from DataGridColumnStyle.
   Dim myGridColumn As MyDataGridColumnStyle = CType _
   (dataGrid1.TableStyles(0).GridColumnStyles("CompanyName"), _
   MyDataGridColumnStyle)
   ' Call UpdateUI.
   myGridColumn.UpdateUI(myCurrencyManager, 10, "my new value")
End Sub 

Aplica-se a