Steps: Private Sub Data Grid View1_Cell Validating(By Val sender As System.
Is In Edit Mode Then Dim c As Control = Data Grid View1.
End Edit() '..MSDN documentation is incorrect and the public overload of Cancel Edit does not exit edit mode and to do so we need to follow it with End Edit 'https://microsoft.com/Forums/en-US/84c06fbe-5c55-42b0-bc2d-6096c2720b4d/datagridviewcanceledit-doesnt? You'll be able to ask any tech support questions, or chat with the community and help others.Displaying a Combo Box in Cell Frequently, besides displaying text in a cell you may want to display a drop-down list box to allow users to select from a list of pre-determined values. Header Text = "Types" '---add items to it--- combo Box Col. Add("Price", "Price") '---add a combobox column--- Dim combo Box Col As New Data Grid View Combo Box Column '---set the header text--- combo Box Col. We're a friendly computing community, bustling with knowledgeable members to help solve your tech questions.