mattyboy2000
Programmer
Hi,
I have a form with one control on it ( a datagrid). When It loads I want the first cell to have focus (As you would expect). I databing it to a data table and then call the following lines:
Me.dgVATCodes.CurrentCell = New DataGridCell(0, 0)
Me.dgVATCodes.Focus()
The problem is that it does nothing!!!
If I do:
Me.dgVATCodes.CurrentCell = New DataGridCell(0, 1)
Me.dgVATCodes.Focus()
It focuses on the second cell (No probs)
Any Ideas???
Matt
I have a form with one control on it ( a datagrid). When It loads I want the first cell to have focus (As you would expect). I databing it to a data table and then call the following lines:
Me.dgVATCodes.CurrentCell = New DataGridCell(0, 0)
Me.dgVATCodes.Focus()
The problem is that it does nothing!!!
If I do:
Me.dgVATCodes.CurrentCell = New DataGridCell(0, 1)
Me.dgVATCodes.Focus()
It focuses on the second cell (No probs)
Any Ideas???
Matt