Hi,
The datagridview validating event occurs leaving the cell. So you will not get the listbox.SelectedIndexChanged event before validating event when you table out the datagridview control.
I guess you may want to set the dataGridViewCell value to the selected items of listbox.
You can showdialog a form and the form has a listbox. You can handle the listbox selectedIndexChanged event to set the value. You can call datagridview.validating() method to check the value.
You can also try the DataGridViewComboBoxColumn control. It also show the drop down list when user edit the cell.
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.