DataGridTableStyle.EndEdit(DataGridColumnStyle, Int32, Boolean) Methode

Definitie

Hiermee wordt een einde aan een bewerking aangevraagd.

public:
 virtual bool EndEdit(System::Windows::Forms::DataGridColumnStyle ^ gridColumn, int rowNumber, bool shouldAbort);
public bool EndEdit(System.Windows.Forms.DataGridColumnStyle gridColumn, int rowNumber, bool shouldAbort);
abstract member EndEdit : System.Windows.Forms.DataGridColumnStyle * int * bool -> bool
override this.EndEdit : System.Windows.Forms.DataGridColumnStyle * int * bool -> bool
Public Function EndEdit (gridColumn As DataGridColumnStyle, rowNumber As Integer, shouldAbort As Boolean) As Boolean

Parameters

gridColumn
DataGridColumnStyle

De DataGridColumnStyle te bewerken.

rowNumber
Int32

Het nummer van de bewerkte rij.

shouldAbort
Boolean

Een waarde die aangeeft of de bewerking moet worden gestopt; true als het moet stoppen; anders. false

Retouren

true als de bewerking is beëindigd; anders, false.

Implementeringen

Voorbeelden

In het volgende codevoorbeeld wordt de methode BeginEdit aangeroepen op de huidige DataGridTableStyle in een besturingselement System.Windows.Forms.DataGrid.

private:
   void EditTable()
   {
      DataGridTableStyle^ dgt = myDataGrid->TableStyles[ 0 ];
      DataGridColumnStyle^ myCol = dgt->GridColumnStyles[ 0 ];
      dgt->BeginEdit( myCol, 1 );
      dgt->EndEdit( myCol, 1, true );
   }
private void EditTable(){
   DataGridTableStyle dgt= myDataGrid.TableStyles[0];
   DataGridColumnStyle myCol = dgt.GridColumnStyles[0]; 
      
   dgt.BeginEdit(myCol,1); 
   dgt.EndEdit(myCol, 1, true);
}
Private Sub EditTable()
    Dim dgt As DataGridTableStyle = myDataGrid.TableStyles(0)
    Dim myCol As DataGridColumnStyle = dgt.GridColumnStyles(0)
    
    dgt.BeginEdit(myCol, 1)
    dgt.EndEdit(myCol, 1, True)
End Sub

Opmerkingen

Net als bij de methode BeginEdit is de methode EndEdit bedoeld om de System.Windows.Forms.DataGrid op de hoogte te stellen wanneer een bewerking wordt beëindigd.

Van toepassing op

Zie ook