For example, if you call the Auto Resize Rows(Data Grid View Auto Size Rows Mode, Boolean) overload of the Auto Resize Rows method and pass in a value of false for the Boolean parameter, the overload will calculate the ideal heights and widths for cells in the row, but it will adjust the row heights only.
Therefore I must find out the current object inside Row Validating-Event of the Data Grid View, since the Binding Source does not offer an event to stop changing before change occurs. The enumerations used by sizing properties and methods have similar values for content-based sizing. You must then call the Auto Resize Columns method to adjust the column widths to the calculated ideal.To replace this default dialog please handle the Data Error event. Please keep each thread to a single topic and each topic to a single thread.
I know why the error is occurring, it's because one or more records has a value in a Combo Box column that's not in the dropdown. I also have a situation when the user exits a new row without filling in all the required fields. It's not a case of what event triggers it but rather what you need to do to prevent it, which would be handling the Row Validating event.I do not need the object of the current selected cell, but the object on which the whole row is based, in this case a Business Object whos properties make the columns of the grid.