i have a datagridview which i populate of a dB.
i have 3 columns on the dgv
ID, Account Type and Notes.
i created an add record button, that enables the user to add records.
Account ID is a numerator in the dB, and i would like to automatically add 1 to the numerator.
however i can't get the value of the last cell in the last row. for now i am using
Dim RowCount As Integer = Me.grdAccountTypes.RowCount - 1
Dim AccountID As Integer = grdAccountTypes.Item(0, RowCount).Value
anyone has any idea ?
View Complete Post