PeopleSoft Adoption Made Smooth & Simple!
On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool. Claim Your Free WalkMe Account Now
when the automatic sort is selected (after clicking the colum title) and you add a new row when it loses the focus it sorts correctly but the combobox format stays in the last row which shows an error .
Private Sub DataGridView_RowEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView.RowEnter If DataGridView.Rows(e.RowIndex).IsNewRow = True Then Dim Cell As DataGridViewComboBoxCell = New DataGridViewComboBoxCell Cell.DataSource = ds.Tables(3) Cell.ValueMember = "Nombre" Cell.DisplayMember = "Nombre" DataGridView(2, e.RowIndex) = Cell DataGridView(2, e.RowIndex).ReadOnly = False End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.