I have a datagrid on my form. It docks fill when I click a button. Then when I press F9 it should dock bottom but nothing happens. Here's my code:
I'm using Visual Studio 2012Code:Private Sub MakbuzTDataGridView_KeyDown(sender As Object, e As KeyEventArgs) If e.KeyCode = Keys.F9 Then MakbuzTDataGridView.Dock = DockStyle.Bottom Me.Validate() Me.MakbuzTBindingSource.EndEdit() End If End Sub




Reply With Quote
