Some questions when DataGridViewcomboBoxColumn use in DataGridView

xiaoxiao2021-03-06  101

The value of each cell must be found in the list of drop-down menus, otherwise an error will occur, and there is no good way to process it. About adding a new record in the DataGridView can add a line record in the data sheet bound to the column during Form Load, which corresponds to the default value of the DataGridView to add a new record, so that you can guarantee that you can in List This value is found. However, this is not the best practice, I hope I can find a way to deal with the value that is not found in the list, should there be an event to handle this state? I haven't found it yet.

转载请注明原文地址:https://www.9cbs.com/read-98821.html

New Post(0)