Hi,
Here is an example. I added a bindingnaviagat or and datagridview to a
form.
Public Class Form1
Dim bs As New BindingSource
Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
Dim strConn As String = _
"Server = .;Database = NorthWind;" & _
"Integrated Security = SSPI;"
Dim conn As New SqlClient.SqlCo nnection(strCon n)
Dim dt1 As New DataTable
Dim da1 As New SqlClient.SqlDa taAdapter _
("Select * from Orders", conn)
da1.Fill(dt1)
bs.DataSource = dt1
DataGridView1.D ataSource = bs
BindingNavigato r1.BindingSourc e = bs
End Sub
Private Sub BindingNavigato rAddNewItem_Cli ck(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles
BindingNavigato rAddNewItem.Cli ck
bs.AddNew()
bs.Position = bs.Count
End Sub
End Class
Ken
--------------------
"Paul Remblance" <pa**@remblance .co.ukwrote in message
news:4i******** ****@individual .net...
>I am trying to use the bindingnavigato r addnewitem button to place the
focus on the first cell in the newrow row. I have disabled the default
action and I am using the bindingnavigato raddnewitem click event. Using
newrowindex for the row how can I move the focus?