DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) Method

정의

지정한 행의 값을 지정한 텍스트로 업데이트합니다.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 ^ displayText);
protected internal virtual void UpdateUI (System.Windows.Forms.CurrencyManager source, int rowNum, string displayText);
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, displayText As String)

매개 변수

rowNum
Int32 Int32 Int32 Int32

업데이트할 행입니다.The row to update.

displayText
String String String String

새 값입니다.The new value.

예제

다음 코드 예제에서는 UpdateUI 새 값을 설정 합니다.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 

적용 대상