none
How can I get the contains for a cell in a RowsRemoved event? RRS feed

  • Question

  • Hi all of you,

    It is a not binded datagridview.

    It does not work at all:

        Private Sub dgv_piezas_definitivo_RowsRemoved(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowsRemovedEventArgs) Handles dgv_piezas_definitivo.RowsRemoved

    me.dgv_tareas_definitivo.Rows(e.RowIndex).Cells(0).Value

    Thanks a lot,


    Enric


    Tuesday, July 10, 2012 1:03 PM

Answers

  • This is because, when RowsRemoved event fires, the row is already been removed. Hence, you will not get any value.


    Please mark this post as answer if it solved your problem. Happy Programming!

    • Marked as answer by Enric Vives Tuesday, July 10, 2012 2:31 PM
    Tuesday, July 10, 2012 2:27 PM