Valore Colonna RowValidating





In questo metodo, ogni volta che si cambia record, su na griglia,
la proprieta' RowValidating verifica row.cells e ritorna il valore di una colonna


Private Sub dataGridView1_RowValidating(ByVal sender As Object, ByVal e As DataGridViewCellCancelEventArgs) _
Handles dataGridView1.RowValidating
' Calculate the customer ID for offline mode. Currently this is done by handling

' the RowValidating event, but note that this event fires each time focus leaves

' a row. Currently the row index has to be special cased to decide when to perform

' calculate the customerID.



Dim row As DataGridViewRow = dataGridView1.Rows(e.RowIndex)

' Only want to calculate the CustomerID if it hasn't been calculated.

row.Cells(1).Value

row.Cells("CustomerID").Value.ToString










( valorecolonnarowvalidating.html )- by Paolo Puglisi - Modifica del 17/12/2023