DataGridColumnStyle.UpdateUI(CurrencyManager, Int32, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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 instantText);
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
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)
Protected Friend Overridable Sub UpdateUI (source As CurrencyManager, rowNum As Integer, displayText As String)
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.
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
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET