C dgv cell validating
Content-based automatic sizing modes do not affect rows, columns, or headers that you have hidden by setting the row or column Visible property or the control Row Headers Visible or Column Headers Visible properties to false. For maximum performance, use programmatic resizing instead so that you can resize at specific times, such as immediately after new data is loaded. For example, you might programmatically resize all columns immediately after loading data, or you might programmatically resize a specific row after a particular cell value has been modified. Get Preferred Width() methods or by calling protected resizing method overloads in a derived Data Grid View control. You will typically call the programmatic resizing methods at specific times. 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.
Programmatic content-based resizing affects rows, columns, and headers regardless of their visibility.If the key pressed is Enter, I call End Edit(), otherwise I call base. It works great, except the Cell Validating event isn't fired. Column Index = 1 Then Dim i Row As Integer = My Base.